Vlookup with base data tothe left

andyb16

Board Regular
Joined
Apr 19, 2011
Messages
77
Hi All,

I have data with subtotals as shown below:

Invoice Amount Invoice Month Amount Paid
10 Jan-2011 11
20 Jan-2011 21
30 Jan-2011 31
60 Jan-2011 Total 63
40 Feb-2011 41
50 Feb-2011 51
60 Feb-2011 61
150 Feb-2011 Total 153
210 Grand Total 216


I want to write a formula that looks up for the column that contains the string "Jan-2011 Total"(the subtotals/Invoice Month column) and gives the result of the value to the left i.e the subtotal of the Invoice Amount (for Jan its 60). I was able to do this when data was to the right of the Invoice Month column. But am struggling to do the same when data is to the left. Please assist.

Thanks
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Index/Match..

If the Dates are in column B, and the subtotal is column A

=INDEX(A:A,MATCH(somedate,B:B,0))

Hope that helps.
 
Upvote 0
If the data is in Columns A:C

This regular formula returns the Col_A value that corresponds to the "Jan-2011 Total" cell

Code:
=INDEX(A1:A100,MATCH("Jan-2011 Total",B1:B100,0))
Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,943
Latest member
Newbie4296

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