Go to Post If my shop was snowed in and my unfinished robot was sitting in there, I'd dig it out with a plastic spoon or melt it out with a Bic lighter if I had to. Every hour counts. If there's a will, there's a way to make it happen. - sanddrag [more]
Home
Go Back   Chief Delphi > Other > Chit-Chat
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2015, 20:23
JOEL340 JOEL340 is offline
340 Alumni, Mentor for 5030 and 340
FRC #0340 (Greater Rochester Robotics)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2007
Location: New York
Posts: 31
JOEL340 will become famous soon enough
Excel Help!!

I was wondering if anybody could help me with some excel work. I am trying to make a spread sheet for scouting and have everything done except one part. I have a sheet where I can change the matches, on this sheet there are three cells that I want to change to a default number of 0 when I change the match number. Any help would be nice, Thank you!
__________________
TEAM 5030

2015-Present Mentor
New York City Regional Champions 2016
TEAM 340
2014-Present Mentor
New York Tech Valley Regional Champions 2015
2010-2013 Student
Buckeye Regional Champions 2012
Chairmans Award 2010, 2011, 2012, 2014
Engineering Inspiration2012, 2014

Last edited by JOEL340 : 09-02-2015 at 22:15.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2015, 01:15
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,103
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: Excel Help!!

After looking at a couple StackOverflow posts [1] and [2], I think some Visual Basic might be easiest.

I've attached an .xls which does the job (created from Excel 2003). The code is set to change cell B2, C2, and D2 to "0" whenever cell A2 is edited. The code is as follows:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Target.Worksheet.Range("A2")) Is Nothing Then
        Target.Worksheet.Range("B2").Value = 0
        Target.Worksheet.Range("C2").Value = 0
        Target.Worksheet.Range("D2").Value = 0
    End If
End Sub
In the event this doesn't work in you version of Excel, let me know. I have no good idea if this is "clean" VBA code, but it works. Go and change the cells as appropriate.

PS: you'll probably have to enable macros upon opening the file.
Attached Files
File Type: xls Book1.xls (20.0 KB, 5 views)
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:21.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi