Ask Your Question

How do I select one of each category in a column?

asked 2019-03-14 15:19:00 +0100

Dumbbunny gravatar image

I am trying to create a master list (Column B) of categories from a column (A) that has many multiples of each categories.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2019-03-14 16:26:05 +0100

Lupp gravatar image

The details depend, of course, on some assurances you can probably give, butdidn't: Your example has contiguous ranges only of equal category content e.g, but you didn' state this as assured. ...

The by far most efficient way surely isi the creation of a pivot table (DataPilotTable) with the 'Category' as the only RowField and with no DataField at all.
However, you need to trigger the refresh manually when needed, or to organise a kind of AutoCalculate bevaiour for the PT by user code.

The task can also be done by siome user code I can provide. Disadvantages of relying on user code generally and of array function needing to lock an output range specofically must be accepted.

Finally the task can be done introducing some helper columns and accepting rather poor efficiency due to the fact that many cells will need to lool up ranges (the larger the more you go down in rows).

The first two solutions are demonstrated in Sheet1, the third one in Sheet2 of this attached SSD.

(Don't use google sheets. If they succeed they will impose new insane compatibility requirements on free and open software. Stay aware of the fact that only the supporters of free and open software are acting on your interests.)

edit flag offensive delete link more

answered 2019-03-14 17:31:22 +0100

Dumbbunny gravatar image

D'oh! I have duplicate files on my categories - LIbreOffice Calc and Google Sheets - and I "shared" my Sheets instead of attaching my Calc SS. I apologize.

Your formula in Sheet 2 worked. I had to rename some of my categories because they contained +, $. Long ago during my career as Inventory Manager I used a formula which I thought was simpler but after eleven years of retirement I don't remember much.

I will heed your advise about not using Google Sheets.

Thanks so much for the assistance.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-03-14 15:19:00 +0100

Seen: 99 times

Last updated: Mar 14 '19