Conditional formatting

Tonigirl

New Member
Joined
Mar 26, 2021
Messages
6
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I have a range in one column (G22:G200) with different numbers (1-5) and I have one cell that has a date (D4) and I have another column range that has different dates (O22:O200)

What im trying to say is if range G22:G200 has #2 and date in D4 is greater than O22:O200 then it should be highlighted as green

The formulas i currently have are
=If($G$22:$G$200=2,(&O$22:$O$200>$D$4))
=IFS(THEN($G$22:$G$200=2(&O$22:$O$200>$D$4)

Neither one of them is working, please help.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,790
Office Version
  1. 365
Platform
  1. Windows
Hi & welcome to MrExcel.
Select G22:G200 & in CF use this formula
Excel Formula:
=AND(G22=2,O22<$D$4)
 

Tonigirl

New Member
Joined
Mar 26, 2021
Messages
6
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi & welcome to MrExcel.
Select G22:G200 & in CF use this formula
Excel Formula:
=AND(G22=2,O22<$D$4)
Thank you so much, I just tried it and it worked
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,790
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Do you mean if col O is blank?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,790
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Ok, how about
Excel Formula:
=AND(G22=2,O22<$D$4,O22<>"")
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,790
Office Version
  1. 365
Platform
  1. Windows
Are the cells in col O actually empty?
 

Tonigirl

New Member
Joined
Mar 26, 2021
Messages
6
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Are the cells in col O actually empty?
Yes, some are but u know what that would only matter if I'm doing less than instead of greater than. And for comparasion purposes I don't really need to do that. So I'm okay now... THANK YOU SO MUCH for your help! I hope you have a great rest of your day! 😊
 

Watch MrExcel Video

Forum statistics

Threads
1,130,042
Messages
5,639,730
Members
417,108
Latest member
Thein Than

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top