Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Justin C
 
Posts: n/a
Default Calculation on most recent figures only

I'm adding one row of data to a table each day, the first column is the
date. On another worksheet in the same workbook I'd like to show a
calculation based on the most recent data only, the data on the second
worksheet is mainly static apart from a daily update based on the new
figures.

Any suggestions on how to go about this?

Thank you for any help you can give.

Justin.

--
Justin C by the sea.
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Justin,

To return the latest (lowest down the sheet) values from columns B to F,
enter this anywhere in column B of your other sheet, and copy over to column
F. You can then use it for the basis of your calculations.

Just use a date (other than Christmas, 2025) that is further in the future
than any of the dates in your table. Change the Sheet Name to reflect the
actual name of the sheet with the table.

=VLOOKUP(DATEVALUE("12/25/2025"),'Sheet Name'!A:F,COLUMN())

HTH,
Bernie
MS Excel MVP


"Justin C" wrote in message
e.com...
I'm adding one row of data to a table each day, the first column is the
date. On another worksheet in the same workbook I'd like to show a
calculation based on the most recent data only, the data on the second
worksheet is mainly static apart from a daily update based on the new
figures.

Any suggestions on how to go about this?

Thank you for any help you can give.

Justin.

--
Justin C by the sea.



  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

You can use this formula to find the row number of the last entry in column A

=MATCH(9.99999999999999E+307,A:A)

Once you have the row number, you can pull any item from that row into your
second spreadsheet using the INDEX() function, i.e.,

=INDEX(Sheet1!A1:Z500,MATCH(9.99999999999999E+307, A:A),2)

to get the value in the 2d column (column B) of that row





"Justin C" wrote:

I'm adding one row of data to a table each day, the first column is the
date. On another worksheet in the same workbook I'd like to show a
calculation based on the most recent data only, the data on the second
worksheet is mainly static apart from a daily update based on the new
figures.

Any suggestions on how to go about this?

Thank you for any help you can give.

Justin.

--
Justin C by the sea.

  #4   Report Post  
Justin C
 
Posts: n/a
Default

On 2005-04-27, Bernie Deitrick <deitbe@consumer wrote:
Justin,

To return the latest (lowest down the sheet) values from columns B to F,
enter this anywhere in column B of your other sheet, and copy over to column
F. You can then use it for the basis of your calculations.

Just use a date (other than Christmas, 2025) that is further in the future
than any of the dates in your table. Change the Sheet Name to reflect the
actual name of the sheet with the table.

=VLOOKUP(DATEVALUE("12/25/2025"),'Sheet Name'!A:F,COLUMN())

HTH,
Bernie
MS Excel MVP


Yes it does thank you. I can see how that works and will save impliment
it shortly.

Justin.

--
Justin C by the sea.
  #5   Report Post  
Justin C
 
Posts: n/a
Default

On 2005-04-27, Duke Carey wrote:
You can use this formula to find the row number of the last entry in column A

=MATCH(9.99999999999999E+307,A:A)


I don't understand how this works. I've looked at the MATCH function and
don't follow what's going on above.



Once you have the row number, you can pull any item from that row into your
second spreadsheet using the INDEX() function, i.e.,

=INDEX(Sheet1!A1:Z500,MATCH(9.99999999999999E+307 ,A:A),2)


I can see how the INDEX function works and (if the first function does
waht you say) how it would work but don't understand it because of my
confusion with the MATCH function.

Justin.

--
Justin C by the sea.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate minus figures Nigel Excel Discussion (Misc queries) 1 March 30th 05 04:33 PM
Calculate minus figures only Nigel Excel Discussion (Misc queries) 0 March 30th 05 10:31 AM
calculating excel spreadsheet files for pensions and life insurance (including age calculation sheets) RICHARD Excel Worksheet Functions 1 March 15th 05 05:49 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


All times are GMT +1. The time now is 09:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"