Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
arethaking
Creator II
Creator II

How to show color based on condition in EXCEL

Hi all,

This is my source data.

I want highlight the cells in any color based on a condition in EXCEL file..

Condition:

For Category D1,Product P2,More than one Customer is there like C2,C3,C4,C5,C6.

Please advise.

Thanks in advance.

Sorry if my question is unrelated.

   

S.No.ProductCustomerCategory
1P1C1M1
2P2C2D1
3P2C3D1
4P3C4D1
5P3C5D1
6P3C6D1
7P4C7K1
8P5C8L1

Capture.PNG

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Aretha,

Formula: =COUNTIF($D:$D, $D1)>1

Step 1:


Goto Home -> Condition Formatting -> Select "New Rule"

Capture.PNG

Step 2:


Edit Formatting Rule -> Select "Use a Formula to determine which cells to format" -> Enter the above formula in "Format values where this formula is true" (Note that here the range is D column) -> Select "Format" button -> Use "Fill" tab to select the appropriate color (just play with other tabs and color options to explore more) -> press ok -> Apply -> Ok

Capture.PNG

View solution in original post

3 Replies
tresesco
MVP
MVP

Why would you like to ask the excel question in qlik community? Google for excel community and you would find many like: https://www.excelforum.com/

arethaking
Creator II
Creator II
Author

Apologies. I do not have access to that forum.

Please help me if possible.

tamilarasu
Champion
Champion

Hi Aretha,

Formula: =COUNTIF($D:$D, $D1)>1

Step 1:


Goto Home -> Condition Formatting -> Select "New Rule"

Capture.PNG

Step 2:


Edit Formatting Rule -> Select "Use a Formula to determine which cells to format" -> Enter the above formula in "Format values where this formula is true" (Note that here the range is D column) -> Select "Format" button -> Use "Fill" tab to select the appropriate color (just play with other tabs and color options to explore more) -> press ok -> Apply -> Ok

Capture.PNG