match and index to return same value for multiple occurances.

omairhe

Well-known Member
Joined
Mar 26, 2009
Messages
2,040
Office Version
  1. 2019
Platform
  1. Windows
Hey excel gurus,

I would like my match and index formula to output me values that are reoccurring in my column A and not just for the first instance.

for example my data looks like this

[TABLE="class: grid, width: 400, align: center"]
<tbody>[TR]
[TD]column A[/TD]
[TD]column B[/TD]
[TD]column C[/TD]
[TD]column D[/TD]
[/TR]
[TR]
[TD]apple
[/TD]
[TD][/TD]
[TD]apple[/TD]
[TD]sweet[/TD]
[/TR]
[TR]
[TD]banana
[/TD]
[TD][/TD]
[TD]banana[/TD]
[TD]yellow[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

formula to output values in column B

[TABLE="class: grid, width: 400, align: center"]
<tbody>[TR]
[/TR]
[TR]
[TD]column A[/TD]
[TD]column B[/TD]
[TD]column C[/TD]
[TD]column D[/TD]
[/TR]
[TR]
[TD]apple
[/TD]
[TD]sweet
[/TD]
[TD]apple[/TD]
[TD]sweet[/TD]
[/TR]
[TR]
[TD]banana
[/TD]
[TD]yellow[/TD]
[TD]banana[/TD]
[TD]yellow[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]sweet[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]sweet[/TD]
[TD][/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]


Anyone? Will appreciate a lot.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about
=VLOOKUP(A2,$C$1:$D$2,2,0)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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