Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Another Lookup Question

I have a table of data where the top row contains this month's dates, and the
cell beneath each date contains a bank balance. Can you please help me
create a formula to put in the far right column(directly after the last date
of the month) that will return the value of the second to last bank balance I
have entered.

For example, today (7/24) I entered a balance, so I want the formula to
automatically update with the bank balance of 7/23.

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Another Lookup Question

Assuming all the cells up to today's date contain an entry:

B1:AF1 = dates
B2:AF2 = balance

=INDEX(B2:AF2,MATCH(TODAY(),B1:AF1,0)-1)

--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
I have a table of data where the top row contains this month's dates, and
the
cell beneath each date contains a bank balance. Can you please help me
create a formula to put in the far right column(directly after the last
date
of the month) that will return the value of the second to last bank
balance I
have entered.

For example, today (7/24) I entered a balance, so I want the formula to
automatically update with the bank balance of 7/23.

Thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Another Lookup Question

Maybe

=INDEX(2:2,LARGE(IF((A2:N2<"")*(A2:N2<""),COLUMN (A2:N2)),2))


Returns the second to last value in A2 - N2
Which is an array so submit with Ctrl+Shift+Enter

Mike

"Bob" wrote:

I have a table of data where the top row contains this month's dates, and the
cell beneath each date contains a bank balance. Can you please help me
create a formula to put in the far right column(directly after the last date
of the month) that will return the value of the second to last bank balance I
have entered.

For example, today (7/24) I entered a balance, so I want the formula to
automatically update with the bank balance of 7/23.

Thanks in advance!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Another Lookup Question

Hmmm...

I just thought of something...

If today is the 1st of the month, then what?

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Assuming all the cells up to today's date contain an entry:

B1:AF1 = dates
B2:AF2 = balance

=INDEX(B2:AF2,MATCH(TODAY(),B1:AF1,0)-1)

--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
I have a table of data where the top row contains this month's dates, and
the
cell beneath each date contains a bank balance. Can you please help me
create a formula to put in the far right column(directly after the last
date
of the month) that will return the value of the second to last bank
balance I
have entered.

For example, today (7/24) I entered a balance, so I want the formula to
automatically update with the bank balance of 7/23.

Thanks in advance!





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
lookup question Jonathan Horvath Excel Worksheet Functions 8 July 9th 08 07:10 AM
Lookup question dtb Excel Worksheet Functions 1 June 8th 08 01:24 AM
(V)LOOKUP question [email protected] Excel Worksheet Functions 4 January 17th 08 04:28 AM
LOOKUP Question [again!] shakey1181 Excel Discussion (Misc queries) 5 May 31st 06 05:33 PM
Lookup Question Mackay 1979 Excel Worksheet Functions 2 February 19th 05 01:11 PM


All times are GMT +1. The time now is 05:30 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"