Forum

Notifications
Clear all

PUT COLOR IN THE CELL

3 Posts
2 Users
0 Reactions
135 Views
(@soubasa)
Posts: 21
Eminent Member
Topic starter
 

Hello,

I need code for data validation to put color in the cell

I explained in the picture

Thank you in advance for your reply

 

Journal.JPG

 
Posted : 09/07/2021 7:19 am
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello,

You can read more about conditional formatting here.

The formula needed to check for the two conditions you look for to add light red background for G column is following:
=OR(AND($C2="LONG",$G2<=$J2),AND($C2="SHORT",$G2>=$J2))

Br,
Anders

 
Posted : 09/07/2021 8:19 am
(@soubasa)
Posts: 21
Eminent Member
Topic starter
 

Mr. Anders your code is 100% works for me and my problem is full solved

Thank you very much for your help

 
Posted : 09/07/2021 10:04 am
Share: