Seemed so simple :( Create a table based on values in rows

roylionking

New Member
Joined
May 21, 2014
Messages
6
Hi, been struggling with this, even into the rabbithole of pivot table 'measures'...
I've got a bunch of names in a column.

Against each, in the next column I've got a category I've given them.
The columns are fixed but I might add new names and change the assigned categories.
All? I want to be able to do is have a table with columns with the categories, and under each one a list of names assigned to it..

Like..
AppleGreen
OrangeOrange
PearGreen
ApricotOrange
GrapeGreen

becoming
GreenOrangeRed...
AppleOrangeetc
PearApricot
Grape

Seems simple but I can't figure it out... Help please!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
what version of excel do you have

with 365 version you can use
transpose
and
filter

in fact i think the filter() can be simplifed to just 1 formula rather than copy twice - i'll have a look

Book1
ABCDEF
1AppleGreenGreenOrange
2OrangeOrangeAppleOrange
3PearGreenPearApricot
4ApricotOrangeGrape
5GrapeGreen
Sheet1
Cell Formulas
RangeFormula
E1:F1E1=TRANSPOSE(UNIQUE(B1:B5,FALSE))
E2:E4,F2:F3E2=FILTER($A$1:$A$5,$B$1:$B$5=E1)
Dynamic array formulas.
 
Upvote 0
Daym!!!
A very elegant solution and tbh I'm wow'd.
Thank you!

=h:l|c:141414|ch:19|ff:hel|fz:15pt]Grape[/XD][XD=h:l|c:141414|ff:hel|fz:15pt]Green[/XD][XD][/XD][XD][/XD][XD][/XD][XD][/XD][/XR][/RANGE]
Cell Formulas
RangeFormula
E1:F1E1=TRANSPOSE(UNIQUE(B1:B5,FALSE))
E2:E4,F2:F3E2=FILTER($A$1:$A$5,$B$1:$B$5=E1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,029
Members
449,092
Latest member
ikke

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