Xlookup help

zinah

Active Member
Joined
Nov 28, 2018
Messages
358
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have below table that has duplicate values for each EEID and what I need is to map those EEID to another table that has business and home for each EEID, when I use the xlookup the formula brings one the first value, as you see in below table and what I need is to get the expected result, can anyone help please?

Book5
ABCDEFG
1EEIDCurrent FormulaExpected ResultEEIDType
24000BusinessBusiness4000Business
34000BusinessHome4000Home
45000BusinessBusiness5000Business
55000BusinessHome5000Home
66000BusinessBusiness6000Business
76000BusinessHome6000Home
87000BusinessBusiness7000Business
97000BusinessHome7000Home
108000BusinessBusiness8000Business
118000BusinessHome8000Home
Sheet1
Cell Formulas
RangeFormula
B2:B11B2=XLOOKUP(A2,F:F,G:G)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How about
Excel Formula:
=INDEX($G$2:$G$11,AGGREGATE(15,6,(ROW($G$2:$G$11)-ROW($G$2)+1)/($F$2:$F$11=A2),COUNTIFS(A$2:A2,A2)))
 
Upvote 0
Solution
How about
Excel Formula:
=INDEX($G$2:$G$11,AGGREGATE(15,6,(ROW($G$2:$G$11)-ROW($G$2)+1)/($F$2:$F$11=A2),COUNTIFS(A$2:A2,A2)))
As usual, you keep on suggesting and sharing great formulas! Thank you so much, that worked great ;)
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,041
Messages
6,128,467
Members
449,455
Latest member
jesski

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