LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Look Up Help Needed Again

Assuming your data is all in row 1 and row 2...you can use a series of MAX()
and HLookup() functions to do what you want.

in your desired free-space, lets say g5, enter '=max(1:1)'. This will give
you your most current date. Now, one cell left of that (f5), enter the same
formula but subtract one. ie: '=max(1:1)-1'. That will give you your most
current date minus one day. Continue that process for as many days as you
prefer.

Now, below the cell containing your most current day formula, g5, use an
hlookup() to find the corresponding monetary value. You will type,
'hlookup(G5,1:1,2:2,2,false)'. This will take the value in G5, look for it in
rows 1:1 and 2:2, then return the value in the row below the found value
(your money cell). Then once you have done that for each box, you can simply
sum() all the subtotal boxes to get your 7 day total.

If this doesnt make sense Ill explain it better, hope it helps!

"Bob" wrote:

Hi,

I had a similar question yesterday, related to a table of data that gets
updated daily. The top row is this month's date, and the row below is the
bank balance for that particular day. Then, the final column (to the right)
is for totals. See below:


Daily Total
Dates| 7/1 7/2 7/3 etc.
Value| $1 $4 $5 etc. ?


Can someone help me create a formula that will add up the most recent seven
days worth of bank balances? For example, after I input today's (7/24)
balance I will want the formula to automatically sum July 18th - July 24th's
balances.

Thanks in advance for your help!

 
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
Help needed. Gary[_2_] Excel Worksheet Functions 2 October 3rd 07 09:20 PM
MVP needed thelees Excel Discussion (Misc queries) 2 February 6th 07 08:03 PM
help needed [email protected] Excel Discussion (Misc queries) 0 March 20th 06 07:01 PM
Help Needed - Please Bradley Bell Excel Discussion (Misc queries) 2 January 18th 06 08:43 AM
If Then help needed RGT New Users to Excel 2 March 18th 05 01:30 AM


All times are GMT +1. The time now is 11:37 PM.

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

About Us

"It's about Microsoft Excel"