Using Index Match Funtion

rehwright

New Member
Joined
Apr 27, 2018
Messages
11
Hi, I'm trying to use the index match function to find the result where the source (in this case the account) could be in columns A through E, and the month is in row 1.

Here is my formula, I know this is not correct, anyone know how to write this correctly? Any help would be greatly appreciated.

=IFERROR(INDEX(BalSheetbyMo!1:100,MATCH('BS Table'!A11,BalSheetbyMo!A:E,0),MATCH('BS Table'!C1,BalSheetbyMo!1:1,0)),0)
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
The account is only in column A? or can it be in any cell of columns A -E?
The months in which column they begin in the F?
The account only appears once?
 
Upvote 0
The months in which column they begin in the F?
The account only appears once?
 
Upvote 0
The months in which column they begin in the F?
The account only appears once?
You can give an example of what you have in these cells
BS Table'!A11,
BS Table'!C1


 
Upvote 0
I'm trying to do a lookup at the intersection of the account and the month. The account numbers can be in any of the Columns from A to E, the month is in row 1. If the account is in column A, then the formula below works:

=IFERROR(INDEX(BalSheetbyMo!1:100,MATCH('BS Table'!A11,BalSheetbyMo!A:A,0),MATCH('BS Table'!C1,BalSheetbyMo!1:1,0)),0)

I need to know how to write the formula if it is in any of the other columns?
 
Upvote 0
Try this


=OFFSET(BalSheetbyMo!$A$1,SUMPRODUCT((BalSheetbyMo!$A$2:$E$1000=A11)*ROW(BalSheetbyMo!$A$2:$E$1000))-1,MATCH(C1,BalSheetbyMo!$1:$1)-1)
 
Upvote 0
To better understand your requirements it is always important to have examples with real data. The explanation would be more practical with examples.
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,970
Messages
6,127,992
Members
449,414
Latest member
sameri

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