Index Match with duplicate values

AnirbanM

New Member
Joined
Mar 14, 2019
Messages
2
Hi Everyone,

I have an excel table from where I would have to fetch value from master data. The report table looks like this.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date1[/TD]
[TD]Date2[/TD]
[TD]Date3[/TD]
[/TR]
[TR]
[TD]Anir[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rex[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Potter[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shiva[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rex[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tango[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I would have to fetch values from the a master table to populate Date1, Date2 and Date3 columns.

The format of the master table looks like this
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Date1[/TD]
[TD]Date2[/TD]
[TD]Date3[/TD]
[/TR]
[TR]
[TD]Anir[/TD]
[TD]23[/TD]
[TD]54[/TD]
[TD]65[/TD]
[/TR]
[TR]
[TD]Rex[/TD]
[TD]88[/TD]
[TD]45[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]Potter[/TD]
[TD]48[/TD]
[TD]96[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]Shiva[/TD]
[TD]55[/TD]
[TD]66[/TD]
[TD]78[/TD]
[/TR]
[TR]
[TD]Rex[/TD]
[TD]58[/TD]
[TD]98[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I am using index match to populate the report table based on the Names, using index match, but since there are duplicate names with different values, only the values corresponding the first entry is being populated everywhere.

Can anyone please suggest any way to perform this operation with any relevant function along with Index Match?

Thanks in advance.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Not a good example since your master table contains no duplicate names and you haven't provided any expected output.

So if rex Date1 (88) was actually Anir Date1 (88) what would you expect to see in Anir Date 1 on your Report table ? 23 or 23+88 ?
Or something else?

Please provide expected output using duplicate names as you described.
 
Last edited:
Upvote 0
Maybe something like this if you have Excel ver. 2010 or later.
Excel Workbook
ABCD
1NameDate1Date2Date3
2Anir235465
3Rex884545
4Potter489625
5Shiva556678
6Rex589845
7Tango
8
9Master Table
10NameDate1Date2Date3
11Anir235465
12Rex884545
13Potter489625
14Shiva556678
15Rex589845
Sheet
 
Upvote 0
Hi,

Thank you for providing the feedback.

The output has to be in the same order as in the master data. it is because the master data gets refreshed each time.. but the output report should have hardcoded names (requirement asked) and only the values of the output table corresponding to the same names in the master data should be fetched.

Thanks in advance
 
Upvote 0
How about showing an example with the expected results based on your description above.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,629
Members
452,661
Latest member
Nonhle

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