Table lookup formula

agent154

New Member
Joined
Sep 20, 2011
Messages
2
I'm starting to go mad, because I can't think of how to do this.

I have a bank account ledger in a table, with column A holding dates, column B holding descriptions, and column K holding balance information I want to look up.

I wish to look in the table for the first row matching an item in column B, but only if it falls between two dates in colunm A. So far I've found how to return the first row that matches in the whole table, but that isn't good enough. The formula I have is as follows:

=OFFSET(INDEX(Account[Balance],MATCH("Pay",Account[Payer or Payee],0)),-1,0)

This looks in my table for "Pay" in the "Payer or Payee" column (which is column b in this case), and returns the value in column K, of the row just above it.

How can I modify this so that it will only consider a chunk of the table, instead of the whole thing?
http://www.excelforum.com/editpost.php?do=editpost&p=2603606
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I've tried using the MATCH function to return the first row after TODAY(), but it is returning erroneous information.

=MATCH(TODAY(),Account[Date],0) returns 213, when today's date is 9/20/2011, and 213 contains yesterday's date. I even try to replace the 0 with -1 to find the next row after today's date, and it returns #N/A.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,278
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top