[Solved] Change Cell color if Same Value Exists in Another Column

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

[Solved] Change Cell color if Same Value Exists in Another Column

Post by rkwynn.73 »

Hello I am trying to come up with a way to change Cell color if Same Value Exists in Another Column.
Example: Column B has a list of names which include (Ray), Column C (Random names) and Column D has a list of names which also include (Ray), So I am trying to change the Cell color if Same Value Exists in Another Column, is that possible with the IF and Vlookup function?
Last edited by rkwynn.73 on Fri Dec 02, 2022 5:30 am, edited 1 time in total.
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: change Cell color if Same Value Exists in Another Column

Post by Zizi64 »

You can colorize/highlight a cell based on some condition by the Conditional Format feature.

You can use the cell fuctions for the condition: MATCH(), VLOOKUP(), etc... If you want to colorize more than one cell, then you need combine the relative and the absolute references in the condition.

Please upload your ODF type sample file here.
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.
rkwynn.73
Posts: 4
Joined: Thu Dec 01, 2022 6:38 am

Re: Change Cell color if Same Value Exists in Another Column

Post by rkwynn.73 »

Sample.png
Sample.png (36.2 KiB) Viewed 1135 times
So what I'm going for is, if a text value shows up in both columns B and D, change the cell color to blue, if a text value shows up in columns B, D an E, change the cell color to blue. if a text value shows up in columns B and E change the cell color to Red. Would this be possible to do? I am fairly new to writing formulas using IF(), MATCH(), VLOOKUP(), etc...
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: Change Cell color if Same Value Exists in Another Column

Post by Zizi64 »

It is not an ODF file...
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
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Change Cell color if Same Value Exists in Another Column

Post by Villeroy »

t108973.ods
(15.49 KiB) Downloaded 122 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
Post Reply