Go to Post Greetings FIRST: THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU. - Tetraman [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-01-2006, 01:15
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,516
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Controlling visibility of cells in Excel

Here's what I want to do in Excel. I want to have a bunch of data (like forces on an object sitting on a ramp) based on the input of something like an angle in degrees from 0-90 in 1 degree increments. I would like to have all 90 rows, one for each angle. But say I want to display the data for only 0-30 degrees. Is there some sort of function I can use where I'll have a cell for "up until what angle do you wish to display?" and then I won't see anything beyond whatever value is input in that cell?

Or maybe I shouldn't say controlling the visibility, but maybe controlling how many times the formula from the first cell is copied down. Or maybe when you input "up until what angle" it will create those cells on its own.

Sorry I didn't describe that well but hopefully you understand what I'm trying to do. I'm not sure if it is possible, but I thought I'd ask.

If you have a question about my description of what I want to do, please ask and I'll try to clarify.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #2   Spotlight this post!  
Unread 04-01-2006, 01:55
Unsung FIRST Hero
Karthik Karthik is offline
VEX Robotics GDC Chairman
no team
Team Role: Mentor
 
Join Date: Apr 2002
Rookie Year: 1998
Location: Toronto, Ontario, Canada
Posts: 2,346
Karthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond repute
Re: Controlling visibility of cells in Excel

Sanddrag,

The spreadsheet I just made up does it in two different ways. The first worksheet uses conditional formatting to check if the cell value is greater than the inputted cutoff. If it is, the text is set to white. This method depends on you having all the data pre-generated.

The second version calculates the data each time. Given an inputted limit and increment (adds some versatility), it generates your list of angles. The formulas are all their for you to play with. I find Excel much easier to learn via re-engineering as opposed to explainations. So I've attached it.

It's late, so it might not be perfect...

Also, there's probably a better way to do it, there always seems to be with Excel.
Attached Files
File Type: xls Controlling Cell Visibility.xls (22.5 KB, 214 views)
__________________
:: Karthik Kanagasabapathy ::
"Enthusiasm is one of the most powerful engines of success. When you do a thing, do it with all your might. Put your whole soul into it. Stamp it with your own personality. Be active, be energetic, be enthusiastic and faithful and you will accomplish your object. Nothing great was ever achieved without enthusiasm" -- R.W. Emerson
My TEDx Talk - The Subtle Secrets of Success
Full disclosure: I work for IFI and VEX Robotics, and am the Chairman of the VEX Robotics and VEX IQ Game Design Committees
.
  #3   Spotlight this post!  
Unread 04-01-2006, 02:28
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Controlling visibility of cells in Excel

Have you tried the Auto Filter feature? Here's a quick example.

Set up two columns with headers, Angle and Force seem like what you have. Once you have all your data entered, select the columns. Now click on Data->Filter->AutoFilter.

You should now have drop down menus in your header cells. Based on what you were asking, you'll want to select the "Custom" option from the Angle drop down. You'll get a dialog where you can enter your filtering criteria. When you enter your query, the rows that don't match will be hidden and the row numbers for the matching rows will be blue.

To get all of your data back, select the "All" option from the drop down.

To remove the drop downs, click Data->Filter->AutoFilter again.

What I like best is that it allows you to filter based on multiple columns. I use this a lot at work when I need to dig through data logs. I can very quickly show all messages of a certain type that occurred in a certain time interval.

Play around with it a little bit, it should be fairly intuitive.

Hope this helps.
  #4   Spotlight this post!  
Unread 04-01-2006, 03:00
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,516
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: Controlling visibility of cells in Excel

Quote:
Originally Posted by Karthik
The second version calculates the data each time. Given an inputted limit and increment (adds some versatility), it generates your list of angles. The formulas are all their for you to play with. I find Excel much easier to learn via re-engineering as opposed to explainations. So I've attached it.
That's almost exactly what I wanted. However, I didn't like the sort of back door route of using the hidden "A" column. So, I devised a better IF statement to take care of that. Take a look.
Attached Files
File Type: xls cell_visibility_2.xls (18.0 KB, 176 views)
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #5   Spotlight this post!  
Unread 04-01-2006, 03:19
Unsung FIRST Hero
Karthik Karthik is offline
VEX Robotics GDC Chairman
no team
Team Role: Mentor
 
Join Date: Apr 2002
Rookie Year: 1998
Location: Toronto, Ontario, Canada
Posts: 2,346
Karthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond reputeKarthik has a reputation beyond repute
Re: Controlling visibility of cells in Excel

Quote:
Originally Posted by sanddrag
That's almost exactly what I wanted. However, I didn't like the sort of back door route of using the hidden "A" column. So, I devised a better IF statement to take care of that. Take a look.
Very nice. I like this new solution better as well. Although Dave's method sounds even better. I've never played with Auto-Filter before, but I am definitely going to in the future.
__________________
:: Karthik Kanagasabapathy ::
"Enthusiasm is one of the most powerful engines of success. When you do a thing, do it with all your might. Put your whole soul into it. Stamp it with your own personality. Be active, be energetic, be enthusiastic and faithful and you will accomplish your object. Nothing great was ever achieved without enthusiasm" -- R.W. Emerson
My TEDx Talk - The Subtle Secrets of Success
Full disclosure: I work for IFI and VEX Robotics, and am the Chairman of the VEX Robotics and VEX IQ Game Design Committees
.
  #6   Spotlight this post!  
Unread 05-01-2006, 02:45
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,516
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: Controlling visibility of cells in Excel

I tried Autofilter and didn't get much luck out of it. The IF function method is working perfectly. Go check out what I was up to in my new whitepaper "Object on an Incline Spreadsheet" It also makes one quite tricky but very creative (imho) use of Conditional Formatting and a use of cell data validation.

Excel is a much more powerful program than most people know. I'm glad I'm finally getting a chance to explore it in more depth than just basic arithmetic and graphs.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Inventor without Excel jdiwnab Inventor 4 14-12-2005 14:28
MS Excel to CAD daramana Inventor 1 21-01-2005 10:03
Hydrogen Fuel Cells Mike AA Electrical 12 20-11-2004 16:41


All times are GMT -5. The time now is 06:39.

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