Conditional Format based on 2 cells

honkin

Active Member
Joined
Mar 20, 2012
Messages
381
Office Version
  1. 2016
Platform
  1. MacOS
I have a sheet where I need to highlight cells in column Y based on a word being present in column G and the value of Y being greater than 0.2
I tried using =AND(G2:G1048576="Draw",Y2:Y1048576>0.2) but it generates an error
What is the correct syntax for what I want?
It is basically column G from row 2 showing the word Draw and column Y from row 2 being greater than 0.2
Thanks in advance
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hit CTRL-G (or Command-G on Mac) to select your range, I can't imagine you're actually going to use that many rows, but select Y2:Y10000 or whatever.
Go into Conditional Formatting and make this your formula:
=AND(G2="DRAW",Y2>0.2)
It will automatically adjust that formula to reflect whatever row it's on.
 
Upvote 1
Solution
Hit CTRL-G (or Command-G on Mac) to select your range, I can't imagine you're actually going to use that many rows, but select Y2:Y10000 or whatever.
Go into Conditional Formatting and make this your formula:
=AND(G2="DRAW",Y2>0.2)
It will automatically adjust that formula to reflect whatever row it's on.
Cheers Scott. It's almost identical to what I had, except I put the entire range. yes you're right, doubt it will ever get that far down, but really just wanted to select the entire column from G2 down
That works exactly as expected, so thanks very much
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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
Back
Top