Retrieve multiple values for a repeated value in a column

EverLearner00

New Member
Joined
Aug 20, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
If I had this sheet:
| A | B |
|------+--------|
| 1 | Apple |
| 2 | Banana |
| 2 | Mango |
| 3 | Grape |
| 4 | Peach |

How do I list unique values from the first column followed by corresponding values in the adjacent columns. So, I get a table like this:
| D | E | F |
|-------|-------|-------|
| 1 |Apple| -----|
| 2 |Banana | Mango |
| 3 |Grape| ----|
| 4 |Peach| -----|

of course my data is much larger, and this is just for illustration
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Welcome to the Forum.

This might help. No doubt there is a better way that spills the result with a single-cell formula, but this will get the job done.

MrExcel posts20.xlsx
ABCDEF
11Apple1Apple
22Banana2BananaMango
32Mango3Grape
43Grape4Peach
54Peach
Sheet22
Cell Formulas
RangeFormula
D1:D4D1=UNIQUE(A1:A5)
E1,E3:E4,E2:F2E1=TRANSPOSE(FILTER(B1:B5,A1:A5=D1))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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