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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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