List Unique Values across 3 cells

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
Hi
In Column A I have a city (for example London, Manchester, Liverpool
In Column B I have a mode of transport for example : Car, Bike, Motorcycle
In Column C I have a name, for example : Mary, Joseph, "Wee Donkey"

What I need it to do is list each combination, starting with Column A, then B, then C

So


Column AColumn BColumn C
LondonCarMary
LondonBikeJoseph
LiverpoolCarWee Donkey
ManchesterCarJoseph
LiverpoolCarWee Donkey
LondonCarJoseph
ManchesterBikeWee Donkey
ManchesterBikeMary
LondonBikeWee Donkey
LondonCarMary
London Car Mary

LONDON - CAR - MARY (So where this set of data comes up with on multiple rows its only listed once)
LONDON - CAR - JOSEPH
London - Car - Wee Donkey (This should NOT appear as this set of data does not appear in any single row)

LONDON - BIKE - JOSEPH
LONDON - BIKE - WEE DONKEY


MANCHESTER - CAR - JOSEPH

MANCHESTER - BIKE - WEE DONKEY
MANCHESTER - BIKE - MARY

LIVERPOOL - CAR - WEE DONKEY


Hope that makes sense!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I used a helper column D. Does this look correct?

Cell Formulas
RangeFormula
D2:D12D2=A2&" - "&B2&" - "&C2
F2:F12F2=IFERROR(INDEX(D2:D100,AGGREGATE(15,6,(ROW(A2:A100)-ROW(A2)+1)/(ISNA(MATCH(D2:D100,F$1:F1,0)))/(D2:D100<>""),1)),"")
 
Upvote 0
Solution
Apologies I have not been able to get online for a few days... My spreadsheet goes down to Row 20117, so have taken the 100 out, and replaced it to 20117

What does the 15,6 do - do i need to amend this as a result?

Also, I have put the formula in F2, but it is not bringing up any results - have I missed anything obvious? (I ie does F1 need a column Header? (have tried ths, but to no avail as its referencing F1 in the formula)

Thanks!
a
I used a helper column D. Does this look correct?

Cell Formulas
RangeFormula
D2:D12D2=A2&" - "&B2&" - "&C2
F2:F12F2=IFERROR(INDEX(D2:D100,AGGREGATE(15,6,(ROW(A2:A100)-ROW(A2)+1)/(ISNA(MATCH(D2:D100,F$1:F1,0)))/(D2:D100<>""),1)),"")
 
Upvote 0
In Aggregate, 15 means SMALL, and 6 means ignore error values. The first row does not need any headers but must exist. Headers optional.

Are you getting an error and, if so, what is it? Seems to work here:

Cell Formulas
RangeFormula
D2:D12D2=A2&" - "&B2&" - "&C2
F2:F12F2=IFERROR(INDEX(D2:D20117,AGGREGATE(15,6,(ROW(A2:A20117)-ROW(A2)+1)/(ISNA(MATCH(D2:D20117,F$1:F1,0)))/(D2:D20117<>""),1)),"")
 
Upvote 0
Apologies, I think where it was mass data it was taking an age to populate, so hence why I thought it was not bringing up anything!

Thanks for the explanations above - I will need to Google further for my own knowledge on this area as something I have not come across - cheers!
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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