[Solved] Split values in column into «uniques» and «duplicates»

Discuss the spreadsheet application
Locked
rkwynn.73
Posts: 4
Joined: Thu Dec 01, 2022 6:38 am

[Solved] Split values in column into «uniques» and «duplicates»

Post by rkwynn.73 »

Hello, so I have column A with a list of names, and need to output duplicates into column C and non-duplicates into column D
example22.png
example22.png (24.62 KiB) Viewed 1034 times
 Edit: Changed subject, was Compare values in one columns and output value into other columns 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Last edited by MrProgrammer on Mon Jan 02, 2023 4:48 am, edited 2 times in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
Open Office 4.1.13 on Windows 10 Pro 64-bit
User avatar
Zizi64
Volunteer
Posts: 11511
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Compare values in one columns and output value into other columns

Post by Zizi64 »

The Filter feature has an option: "No duplications". You can filter your data such way: every existing value will be appeared once only in the result cell range.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
MrProgrammer
Moderator
Posts: 5468
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Compare values in one columns and output value into other columns

Post by MrProgrammer »

rkwynn.73 wrote: Sat Dec 24, 2022 8:03 am need to output duplicates into column C and non-duplicates into column D
This attachment provides formulas to accomplish separation of data into two lists:
• Unique values
• Duplicate values
202212241005.ods
(12.85 KiB) Downloaded 98 times

Cells marked in yellow contain formulas which do not match those in the remainder of the column. If you need any additional assistance attach a spreadsheet demonstrating the difficulty (remove confidential information then use Post Reply, not Quick Reply, and don't attach a picture instead of the spreadsheet itself). I will not help further unless you attach.

[Tutorial] The SUMPRODUCT function
[Tutorial] Ten concepts that every Calc user should know

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Compare values in one columns and output value into other columns

Post by Villeroy »

Apply filter Duplicate = True or False
Copy filtered range.
Paste filtered range.
Attachments
t109123.ods
(18.11 KiB) Downloaded 97 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
rkwynn.73
Posts: 4
Joined: Thu Dec 01, 2022 6:38 am

Re: Compare values in one columns and output value into other columns

Post by rkwynn.73 »

202212241005v2.ods
(11.92 KiB) Downloaded 92 times
In this one, Mom, Dad don't show in the other columns Jo shows in both columns
Open Office 4.1.13 on Windows 10 Pro 64-bit
User avatar
MrProgrammer
Moderator
Posts: 5468
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Compare values in one columns and output value into other columns

Post by MrProgrammer »

rkwynn.73 wrote: Sun Dec 25, 2022 6:05 am In this one, Mom, Dad don't show in the other columns Jo shows in both columns
You have two errors in 202212241005v2.ods.
• In column B your formulas reference range A$2:A$10 but your data extends to cell A13.
• In column C your formulas reference range B$2:B$10 but your data extends to cell B13.
Dad, Mom, and Jo are in rows 11, 12, and 13.

Fix those problems and see if the spreadsheet works better for you. Either set the end of the ranges to row 13 or, if you don't know how many rows you'll have, pick a number like 9999. Read the Ten Concepts tutorial if you don't understand why the formulas use $ in some places. It will difficult to use spreadsheets effectively until you understand the $ syntax.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Locked