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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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