Index Formula with Multiple Match Criteria

Melo

New Member
Joined
Apr 1, 2013
Messages
7
I am trying to create a formula that will return a record number (in column A on "Report" sheet) based on matching both a last name (C4) and date (E4) with a corresponding last name (column AE) and date (column B) on a second sheet ("Report"). This is what I have so far:

=INDEX(Report!$A:$AE,MATCH(C4&E4,Report!$AE:$AE&Report!$B:$B,0),1)

I keep getting a #VALUE error. I don't know what I am doing wrong. Please Help!! :(
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I am trying to create a formula that will return a record number (in column A on "Report" sheet) based on matching both a last name (C4) and date (E4) with a corresponding last name (column AE) and date (column B) on a second sheet ("Report"). This is what I have so far:

=INDEX(Report!$A:$AE,MATCH(C4&E4,Report!$AE:$AE&Report!$B:$B,0),1)

I keep getting a #VALUE error. I don't know what I am doing wrong. Please Help!! :(

Return a record from where (which column) exactly?
 
Upvote 0
So the database that I downloaded my reference ("Report") sheet out of had all of the date entries as text. UGGGGG!!!! Your formula is working perfectly now. Thank you!! Wish that hadn't taken 4 hours to figure out. :mad:
 
Last edited:
Upvote 0
What does this return?

=SUMPRODUCT(--(AE1:AE1000=C4)*--(B1:B1000=E4)*(A1:A1000))

Jai
 
Upvote 0
I want it to return a record number from column A on sheet "Report"

Control+shift+enter, not just enter:

=MATCH(C4,IF(Report!$B$2:$B$500=E4,Report!$AE$2:$AE$500),0)

yields the record number.

Control+shift+enter, not just enter:

=INDEX(Report!$A$2:$A$500,MATCH(C4,IF(Report!$B$2:$B$500=E4,Report!$AE$2:$AE$500),0))

yields the record itself.
 
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

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