lookup similar lookup value but with a different return value

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
293
Office Version
  1. 365
Platform
  1. Windows
I have a source data (code column) that has duplicate values with different names.. Would it be possible for a lookup function to look for similar value but the different return value. Please find below expected result.. thank you.. (Excel 2021)


source​
expected result​
Code​
Name​
Code​
Name​
AAA​
Lara
AAA​
Lara​
BBB​
Gayle
AAA​
Welles​
CCC​
Ponting
BBB​
Gayle​
AAA​
Welles
BBB​
Perot​
BBB​
Perot
CCC​
Ponting​
CCC​
Murdoch
CCC​
Murdoch​
DDD​
Kipling
DDD​
Kipling​
EEE​
Coolidge
EEE​
Coolidge​
EEE​
Porter
EEE​
Porter​
GGG​
Connery
GGG​
Connery​
HHH​
Beatty
GGG​
Fenty​
GGG​
Fenty
HHH​
Beatty​
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
How about
Fluff.xlsm
ABCDEF
1sourceexpected result
2CodeNameCodeName
3AAALaraAAALara
4BBBGayleAAAWelles
5CCCPontingBBBGayle
6AAAWellesBBBPerot
7BBBPerotCCCPonting
8CCCMurdochCCCMurdoch
9DDDKiplingDDDKipling
10EEECoolidgeEEECoolidge
11EEEPorterEEEPorter
12GGGConneryGGGConnery
13HHHBeattyGGGFenty
14GGGFentyHHHBeatty
Summary
Cell Formulas
RangeFormula
F3:F14F3=INDEX(FILTER($B$3:$B$14,$A$3:$A$14=E3),COUNTIFS(E$3:E3,E3))
 
Upvote 0
Solution
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
How about
Fluff.xlsm
ABCDEF
1sourceexpected result
2CodeNameCodeName
3AAALaraAAALara
4BBBGayleAAAWelles
5CCCPontingBBBGayle
6AAAWellesBBBPerot
7BBBPerotCCCPonting
8CCCMurdochCCCMurdoch
9DDDKiplingDDDKipling
10EEECoolidgeEEECoolidge
11EEEPorterEEEPorter
12GGGConneryGGGConnery
13HHHBeattyGGGFenty
14GGGFentyHHHBeatty
Summary
Cell Formulas
RangeFormula
F3:F14F3=INDEX(FILTER($B$3:$B$14,$A$3:$A$14=E3),COUNTIFS(E$3:E3,E3))
sir, i am just curious if there is similar formula that can be used for excel 2019 user? thanks
 
Upvote 0
How about
Excel Formula:
=INDEX(B:B,AGGREGATE(15,6,ROW($B$3:$B$100)/($A$3:$A$100=E3),COUNTIFS(E$3:E3,E3)))
 
Upvote 1

Forum statistics

Threads
1,215,223
Messages
6,123,714
Members
449,118
Latest member
MichealRed

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