Canreef Aquatics Bulletin Board  

Go Back   Canreef Aquatics Bulletin Board > Other > Lounge

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2009, 02:56 PM
banditpowdercoat's Avatar
banditpowdercoat banditpowdercoat is offline
Member
 
Join Date: Oct 2007
Location: 100 mile hse BC
Posts: 2,568
banditpowdercoat is on a distinguished road
Default MS Excel wizz's Is there a script for?

I made a spreadsheet in Excel for all my tank params. It's just a simple Date down the left side, and Month across the top. A page for each parameter. Now, I am grasping at straws here, but wondering if there is a script that will take all the latest input data, and display it? No matter where it is on the chart? Just take the last entry for that "page" and put it in XXX spot on a new page?


Just thinking it would be handier to have all my latest info on one page, not having to scroll through all the pages.
__________________
Dan Pesonen


Umm, a tank or 5
Reply With Quote
  #2  
Old 04-23-2009, 04:28 PM
brizzo's Avatar
brizzo brizzo is offline
Member
 
Join Date: Apr 2006
Location: Kelowna BC
Posts: 504
brizzo is on a distinguished road
Default

What I think you may be looking for a VLOOKUP()

Lets say you have a separate sheet for nitrates (Name the sheet "Nitrates"), 2 columns with date and reading

ie;

04/10/09 - 5ppm
04/11/09 - 4ppm

etc.

Now on your 'report' sheet, you can do:

=VLOOKUP("04/10/09", Nitrate!$A$1:$B:$B1000, 2, FALSE);

And of course instead of entering the date, you can reference a cell that contains a date.

Now let's do a little error correcting, if you don't have a result for a specified date:

=IF(ISNA(VLOOKUP("04/10/09", Nitrate!$A$1:$B:$B1000, 2, FALSE)), VLOOKUP("04/10/09", Nitrate!$A$1:$B:$B1000, 2, FALSE), "No data")

Hope that points you in the right direction, and my explanation makes sense. I have no formal excel training, but consider myself an excel guru somedays

Oh yeah, the $A$1 sets those value as static references, so lets say if you drag the formula down to populate more cells, the values do not increment.
__________________
28g Nano Cube drilled with 13g sump in stock stand. Vertex IN80 Skimmer, Phosban 150 Reactor, Apex Controller, DIY LED with stock hood, dimmable
Established March 2006
Reply With Quote
  #3  
Old 04-23-2009, 04:38 PM
cav~firez22's Avatar
cav~firez22 cav~firez22 is offline
Member
 
Join Date: Jul 2006
Location: LaLa Land
Posts: 247
cav~firez22 is on a distinguished road
Default

If i understand correctly, you want a chart that constantly updates to the current Day/Latest entry?
Reply With Quote
  #4  
Old 04-23-2009, 05:28 PM
mike31154's Avatar
mike31154 mike31154 is offline
Member
 
Join Date: Jul 2008
Location: Vernon
Posts: 2,073
mike31154 will become famous soon enough
Default

Been a while since I've done any playing around with Excel and I'm using an older version, but you might be able to use the "Insert Hyperlink" function to do what you need. I've got a modified sheet I found somewhere on the web which does an age calculation for your water to track water changes. I used this feature to link data from a cell on one sheet to another where I also had water change related data.

Not sure what version of Excel you have, but the feature I used is under the "Insert" menu. Simply choose "Insert Hyperlink" and this will open a small window with numerous options. On the left of this window should be a choice for "Place in This Document". Once you choose that icon, you should then see a cell reference option to the right. That will allow you to find and choose the cell on whichever sheet in the document you wish to display in the cell on the main sheet you're working on. HTH.
__________________
Mike
77g sumpless SW
DIY 10 watt multi-chip LED build http://www.canreef.com/vbulletin/showthread.php?t=82206
Reply With Quote
  #5  
Old 04-23-2009, 06:03 PM
Glennrf38 Glennrf38 is offline
Member
 
Join Date: Jul 2006
Location: Calgary
Posts: 332
Glennrf38 is on a distinguished road
Default

Nazarine. You almost have it. change the ranges from $A$1:$B:$B1000 to just A$:B$
It actually makes the vlookup a bit faster. Other than that I agree. I think that is the best way unless he goes with VBA. Depending on what he is looking for.
__________________
150 G mixed reef.
Reply With Quote
  #6  
Old 04-23-2009, 06:26 PM
Doo Doo is offline
Member
 
Join Date: Apr 2008
Location: Edmonton Alberta
Posts: 276
Doo is on a distinguished road
Default

will this not lock it to one spot only?
He will have to change the "vlookup" every time he changes the location of the data...

Quote:
Originally Posted by nazerine View Post
What I think you may be looking for a VLOOKUP()

Lets say you have a separate sheet for nitrates (Name the sheet "Nitrates"), 2 columns with date and reading

ie;

04/10/09 - 5ppm
04/11/09 - 4ppm

etc.

Now on your 'report' sheet, you can do:

=VLOOKUP("04/10/09", Nitrate!$A$1:$B:$B1000, 2, FALSE);

And of course instead of entering the date, you can reference a cell that contains a date.

Now let's do a little error correcting, if you don't have a result for a specified date:

=IF(ISNA(VLOOKUP("04/10/09", Nitrate!$A$1:$B:$B1000, 2, FALSE)), VLOOKUP("04/10/09", Nitrate!$A$1:$B:$B1000, 2, FALSE), "No data")

Hope that points you in the right direction, and my explanation makes sense. I have no formal excel training, but consider myself an excel guru somedays

Oh yeah, the $A$1 sets those value as static references, so lets say if you drag the formula down to populate more cells, the values do not increment.
Reply With Quote
  #7  
Old 04-23-2009, 08:18 PM
brizzo's Avatar
brizzo brizzo is offline
Member
 
Join Date: Apr 2006
Location: Kelowna BC
Posts: 504
brizzo is on a distinguished road
Default

Quote:
Originally Posted by Glennrf38 View Post
Nazarine. You almost have it. change the ranges from $A$1:$B:$B1000 to just A$:B$
It actually makes the vlookup a bit faster. Other than that I agree. I think that is the best way unless he goes with VBA. Depending on what he is looking for.
Nice!! I was always wondering if there was a better way than a specific table range. That tip will help with some of my dynamic sheets that have data pulled from a database.
__________________
28g Nano Cube drilled with 13g sump in stock stand. Vertex IN80 Skimmer, Phosban 150 Reactor, Apex Controller, DIY LED with stock hood, dimmable
Established March 2006
Reply With Quote
  #8  
Old 04-23-2009, 10:38 PM
Glennrf38 Glennrf38 is offline
Member
 
Join Date: Jul 2006
Location: Calgary
Posts: 332
Glennrf38 is on a distinguished road
Default

I would go with a VBA app myself but I'm kind of a Excel Geek.......
__________________
150 G mixed reef.
Reply With Quote
  #9  
Old 04-24-2009, 04:25 AM
banditpowdercoat's Avatar
banditpowdercoat banditpowdercoat is offline
Member
 
Join Date: Oct 2007
Location: 100 mile hse BC
Posts: 2,568
banditpowdercoat is on a distinguished road
Default

OK, I'm lost here.
cav-fire has a copy of whta I have, Heres a link to what I am using

http://www.banditpowdercoat.com/Down...parameters.xls
__________________
Dan Pesonen


Umm, a tank or 5
Reply With Quote
  #10  
Old 04-24-2009, 02:48 PM
mike31154's Avatar
mike31154 mike31154 is offline
Member
 
Join Date: Jul 2008
Location: Vernon
Posts: 2,073
mike31154 will become famous soon enough
Default

Is there a reason you've broken the date into two columns, i.e., month across the top and day down the left? Why not have the entire date in one cell, which can be formatted as a date type cell? That way you could use one column/row for the entire date value and then use the second column/row for all your parameters on one sheet, vice having a separate sheet for each parameter. Then you can work on a separate sheet to consolidate the info using the value lookup function recommended by the other dudes/dudettes.
__________________
Mike
77g sumpless SW
DIY 10 watt multi-chip LED build http://www.canreef.com/vbulletin/showthread.php?t=82206
Reply With Quote
Reply


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

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


All times are GMT. The time now is 03:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.