Joseph Fisher2 said:gotta ask a simple (hopefully) question
Nah, actually isn't that simple at all
If you aren't satisfied with what JohnC put down, we gotta dig deeper.
Looks like the table is missing pieces and doesn't show the full picture, so there might be follow-up issues here.
1. Is everything in that first column unique (no repeats)?
2. Does the result strictly have to be "Pero 900 Pero 300" or can it just be "Pero 900 300"?
Basically, we need to know if those first column values are all unique. If they are, this should work:
Option one:
Say your data is in range A1:D6 and results go in G1:I6. First, grab those UNIQUE data points. Column G gets the unique stuff from column A, and column H pulls from column B.
Drop this formula into cell I1 and drag it down.
Code:
=IF(ISERROR(INDEX($D$1:$D$6;MATCH(G1;$C$1:$C$6;0)));"";INDEX($D$1:$D$6;MATCH(G1;$C$1:$C$6;0)))
Then, pop this into cell L1
Code:
=CONCATENATE(G1;" ";H1;" ";I1)
The results should look like this:
Code:
Mark 200
Pero 900 300
Chicago 300
Los Angeles 500
George 500 100
New York City 50 400
If that doesn't cut it, then we try option two.
Again, grab the unique info from columns one and two and put them in G and H.
Put this in cell I1 and drag it down.
Code:
=IF(J1="";"";G1)
Now, put this in cell J1 and drag it down.
Code:
=IF(ISERROR(VLOOKUP(G1;$C$1:$D$6;2;FALSE));"";VLOOKUP(G1;$C$1:$D$6;2;FALSE))
Finally, one more for cell L1:
Code:
=CONCATENATE(G1;" ";H1;" ";I1;" ";J1)
Result should be:
Code:
Mark