Automaticly Highlight duplicate values in a column row

Discuss the spreadsheet application
Post Reply
MiRaDoR
Posts: 1
Joined: Mon Nov 09, 2015 2:37 pm

Automaticly Highlight duplicate values in a column row

Post by MiRaDoR »

Hi, I was wondering...
Does Calc provide the same "Conditional Formatting" possibilities found in Excel? For example, I would like to highlight all cells that have duplicate values in a column row? I tried to google this, and threading this forum didn't do it for me.
Example:
click-highlight-cells-rules-duplicate-values.png
Is there an easy way, like this Excel one in Open Office Calc?
OpenOffice 4.1.1 on Windows 8.1 Pro
FJCC
Moderator
Posts: 9274
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Automaticly Highlight duplicate values in a column row

Post by FJCC »

Select all of the cells you want to affect and notice which cell the cursor ends up in. That will probably be the first or last cell in the selection. Let's say you highlighted A1:A100 and the cursor is in A100. In the Format -> Conditional Formatting dialog, set the Formula Is to

Code: Select all

COUNTIF($A$1:$A$100; A100) > 1
and set the Style to whatever value you want.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Automaticly Highlight duplicate values in a column row

Post by Villeroy »

FJCC wrote:COUNTIF($A$1:$A$100; A100) > 1
With more than one column selected you compare this row's value in column A:

Code: Select all

COUNTIF($A$1:$A$100; $A100) > 1

In rare cases:

Code: Select all

COUNTIF($A$1:$A$100; A$100) > 1
(this column''s value in row 100)
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
juntjoo
Posts: 5
Joined: Thu Jan 28, 2016 8:55 pm

Re: Automaticly Highlight duplicate values in a column row

Post by juntjoo »

can someone explain how to select cells in more than one sheet? Thanks.
Android OpenOffice 2.5(Apache OpenOffice 4.1.1/X window system 11 release 7.7) & Apache OpenOffice for Windows v.4.1.2
atxemtp
Posts: 1
Joined: Fri Apr 26, 2019 4:37 pm

Re: Automaticly Highlight duplicate values in a column row

Post by atxemtp »

I have 5 (E-I) columns and 171 Rows (2-172) that I need to insure that there are no duplicate values. If there are duplicate values I want to highlight the duplicate values. How do I do this? I am new to open office. :?
Open Office 4 Windows 10
mircea273
Posts: 1
Joined: Thu Dec 05, 2019 6:59 pm

Re: Automaticly Highlight duplicate values in a column row

Post by mircea273 »

I have selected my 2 columns that I wanted to compare, then I went to "Format->Conditional Formatting->Condition"
There I have selected cell value is "duplicate" "apply style" "Warning" to make the duplicated values red.
Libre Office 6.0.7.3 on Ubuntu 18.04
Post Reply