Conditional format a row according to the highest cell value

  • Thread starter Thread starter Legacy 143009
  • Start date Start date
L

Legacy 143009

Guest
Hi,

I state each time proudly that I am quite bad at conditional formatting :)
I have a set of survey results and I populated answer percentages per question.
CDEF
QuestionsYESMAYBENO
1. Question1%66%33%0

I want to highlight each row from column D to F, like if closer to "100% YES" more green and closer to "100% NO" more red.
Does it make any sense? 🤔
My data ranges from D2:F19. Thanks a lot!

I don't know what to expect either. Maybe a weighting system can be created. Maybe it can be the weighted avarage of three answers. I am expecting something like this:
1669287529146.png
 
Last edited by a moderator:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try

Book3
ABCDEFGH
1YESMAYBENO
200.3330.667
3001
40.3330.3330.333
50.6670.3330
6100
7
8
9
10
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:F6Expression=AND($D2>0.667,$E2>=0,$F2>=0)textNO
D2:F6Expression=AND($D2>0.333,$E2>0,$F2>=0)textNO
D2:F6Expression=AND($D2>0,$E2>0,$F2>0,$D2=$E2,$E2=$F2)textNO
D2:F6Expression=AND($D2>=0,$F2>0.667)textNO
D2:F6Expression=AND($D2>=0,$F2>=0.667)textNO
 
Upvote 0
Try

Book3
ABCDEFGH
1YESMAYBENO
200.3330.667
3001
40.3330.3330.333
50.6670.3330
6100
7
8
9
10
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:F6Expression=AND($D2>0.667,$E2>=0,$F2>=0)textNO
D2:F6Expression=AND($D2>0.333,$E2>0,$F2>=0)textNO
D2:F6Expression=AND($D2>0,$E2>0,$F2>0,$D2=$E2,$E2=$F2)textNO
D2:F6Expression=AND($D2>=0,$F2>0.667)textNO
D2:F6Expression=AND($D2>=0,$F2>=0.667)textNO
Thanks for your time and effort.
I came up with a formula which is:
=1-F2-(E2/2)
So, speaking of the first row, what I want is to make the row greener if this value approaches to 1 and redder if value approaches to 0.
Which steps should I follow?
 
Last edited by a moderator:
Upvote 0
Go to Conditional formatting > New Rule


1669292760172.png



Put the formula here

1669292800987.png





Book3
CDEFG
1YESMAYBENO
200.3330.667
3001
40.3330.3330.333
50.6670.3330
6100
7
8
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:F6Expression=ROUND(1-$F2-($E2/2),0)=1textNO
D2:F6Expression=ROUND(1-$F2-($E2/2),0)=0textNO
 
Upvote 0
What I mean by greener and redder is, I mean gradian :)
0 red, 0.5 yellow, 1 green. It should evaluate according to the result of this formula =1-F2-(E2/2)
 
Upvote 0
Thanks for your time and support (y)
I think it is not achievable according to this post:
 
Upvote 0

Forum statistics

Threads
1,224,808
Messages
6,181,072
Members
453,020
Latest member
mattg2448

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