Index, Match, when match data occurs in more than one row

DetroitKnitter

New Member
Joined
Feb 15, 2014
Messages
15
My brain hurts :) I hope I typed the match array correctly for this example.

How do you change this formula so that the result in column E shows the next occurrence on the sheet when there is identical cells in the matching formula?
I have a sheet with addresses I'm matching to another sheet with address where the result should be what is in B. Most of the time the data in the rows have something that is different like here I've typed the date to be different. What happens if the data in 2 rows are exactly the same?
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]11/30/14[/TD]
[TD]2.57[/TD]
[TD]Jim Smith[/TD]
[TD]123 Main[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88"]=INDEX($B:$B,MATCH($D1,'ADDRESSES'!$A:$A,0))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]12/1/14[/TD]
[TD]3.75[/TD]
[TD]Carol Hall[/TD]
[TD]555 South[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88"]=INDEX($B:$B,MATCH($D2,'ADDRESSES'!$A:$A,0))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]12/11/14[/TD]
[TD]4.38[/TD]
[TD]Randy Stepp[/TD]
[TD]1820 Brook[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88"]=INDEX($B:$B,MATCH($D3,'ADDRESSES'!$A:$A,0))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]12/16/14[/TD]
[TD]2.31[/TD]
[TD]Jim Smith[/TD]
[TD]123 Main[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88"]=INDEX($B:$B,MATCH($D4,'ADDRESSES'!$A:$A,0))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]12/22/14[/TD]
[TD]3.52[/TD]
[TD]George Good[/TD]
[TD]163 Golfview[/TD]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="width: 88"]=INDEX($B:$B,MATCH($D5,'ADDRESSES'!$A:$A,0))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

(wow, that's one bad looking table... sorry)
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Thanks rohith554 - I haven't had a chance to spend a few more hours (yes, hours) working on this. The information in the link looks great and I'm SO glad you shared the link! I probably won't have time to get into this issue for several more days

Thanks again for taking the time to respond!
Marlene
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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