Alternative to the V-LOOKUP? | Fairly simple table problem

James12513

New Member
Joined
Jul 24, 2014
Messages
27
Hello all,

I am having a bit of an issue with trying to convert one list of items into the table below.

The vlookup won't work in this case because it takes the top value it finds, so in the case of trying to find all cities for ID 123, only London will have a "Y".

Does anyone know a method whereby I can get around this issue please?

As always, will really appreciate any ideas :)


LIST

ID Cities visited
123 London
456 New York
789 Tokyo
123 Berlin
123 Florida





Code:
[U][B]TABLE (what I want it to show)[/B][/U]

        London     New York     Tokyo     Berlin      Florida
123       Y                                      Y            Y
456                    Y
789                               Y
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Formula in E2 copied down and across:


Excel 2010
ABCDEFGHI
1IDCities visitedLondonNew YorkTokyoBerlinFlorida
2123London123YYY
3456New York456Y
4789Tokyo789Y
5123Berlin
6123Florida
Sheet1
Cell Formulas
RangeFormula
E2=REPT("Y",COUNTIFS($A$2:$A$6,$D2,$B$2:$B$6,E$1)>0)
 
Upvote 0
Andrew thank you so much! This is incredible
I've been trying to figure this problem out for ages now (trying to use index-match functions but to no avail).
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,985
Members
449,201
Latest member
Lunzwe73

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