[Solved] Formula to return unique values from a column

Discuss the spreadsheet application
Locked
zivilyn99
Posts: 4
Joined: Tue Jul 25, 2017 9:00 pm

[Solved] Formula to return unique values from a column

Post by zivilyn99 »

Hello,

I'm looking for a way to return a list of all the unique values from one column into another column.

So column A contains =
EGGS
EGGS
SAUSAGE
EGGS
BACON
BACON

Therefore column B returns =
EGGS
SAUSAGE
BACON

I've found a number of guides in Excel which show methods on how to do this (my preferred option being here- https://www.mrexcel.com/forum/excel-que ... -list.html - specifically post #8. I have this working in Excel but it doesn't seem to translate into OpenOffice.

Does anyone have any advice for how I can achieve this on OpenOffice Calc? It needs to be a formula, I can't use a filter.

Thanks and regards,
Last edited by zivilyn99 on Tue Aug 15, 2017 5:52 pm, edited 1 time in total.
OpenOffice 4.1.3 on Windows 10
User avatar
JohnSUN-Pensioner
Volunteer
Posts: 876
Joined: Fri Jan 14, 2011 1:21 pm
Location: Kyiv, Ukraine

Re: Formula to return unique values from a column

Post by JohnSUN-Pensioner »

What about Data - Filter - Standard Filter - More - No duplication?

(About formula what you are looking - see here)
Attachments
UnDouble.png
I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
User avatar
MrProgrammer
Moderator
Posts: 4906
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Formula to return unique values from a column

Post by MrProgrammer »

zivilyn99 wrote:I'm looking for a way to return a list of all the unique values from one column into another column. … Does anyone have any advice for how I can achieve this on OpenOffice Calc? It needs to be a formula, I can't use a filter.
I created this sample using the link in the previous post.
201708141411.ods
(7.96 KiB) Downloaded 2843 times
If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.

 Edit: 2022-05-19: If you copy formulas from 201708141411.ods to your own spreadsheet, you must also copy the formulas in columns ZY and ZZ, since those columns are where important calculations are performed. 
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
zivilyn99
Posts: 4
Joined: Tue Jul 25, 2017 9:00 pm

Re: [Solved] Formula to return unique values from a column

Post by zivilyn99 »

All - thankyou for your inputs.

MrProgrammer - Many thanks for the example sheet. This satisfies my requirements perfectly.

Thanks and regards,
OpenOffice 4.1.3 on Windows 10
Locked