Conditional formating for two columns

zoinc

New Member
Joined
Jun 6, 2017
Messages
3
I can't sleep, this is driving me nuts


[TABLE="width: 475"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: left"]Dieter Adriaensen[/TD]
[TD="align: left"] € 4,820.40[/TD]
[/TR]
[TR]
[TD="align: left"]Sammy Bogaert[/TD]
[TD="align: left"] € 3,716.60[/TD]
[/TR]
[TR]
[TD="align: left"]Griet Coostermans[/TD]
[TD="align: left"] € 2,190.90[/TD]
[/TR]
[TR]
[TD="align: left"]Andy Peeters[/TD]
[TD="align: left"] € 3,170.49[/TD]
[/TR]
[TR]
[TD="align: left"]Lieve Van den Heuvel[/TD]
[TD="align: left"] € 5,320.75[/TD]
[/TR]
[TR]
[TD="align: left"]Steve Wilssens[/TD]
[TD="align: left"] € 4,130.20[/TD]
[/TR]
[TR]
[TD="align: left"]Average[/TD]
[TD="align: left"] € 3,891.56[/TD]
[/TR]
</tbody>[/TABLE]
I need to:
[TABLE="width: 729"]
<colgroup><col><col span="10"></colgroup><tbody>[TR]
[TD="colspan: 11, align: left"]Highlight the names and the amounts in blue if the amount is below the average.[/TD]
[/TR]
[TR]
[TD="colspan: 11, align: left"]Highlight the names and the amounts in red if the amount is 15% above the average.

What I managed to do:
Highlight the amounts below the average in blue (never the names)
I am losing my mind....

Thanks a LOT!!!![/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Welcome to the board!

Supposing Dieter is in A1 and his amount in B1 for the sample data you posted, do the following:

1. Select A1:B6 with your mouse.
2. Home>Conditional Formatting>New Rule>Use a formula.
3. For below average formula is: = $B1 < $B$7
4. Choose format (blue fill)
5. Press OK
Repeat these steps for 15% above the average using this formula: =$B1 > 1.15*$B$7 and choose a red fill.
 
Upvote 0
Assuming that your data is in A1:B7, try the following:

Highlight A1:B6 > Conditional Formatting > New Rule > Use a formula

=$B1<$B$7

Format: Fill blue > OK > OK

Highlight A1:B6 > Conditional Formatting > New Rule > Use a formula

=$B1>=1.15*$B$7

Format: Fill red > OK > OK

Edit: Joe beat me to it.
 
Last edited:
Upvote 0
JoeMo, 63Falcondude

It worked !
I am faithful to this board as long as I live.THANK YOU
:-D

P.S-JoeMo beat you by one minute :eeek:
 
Upvote 0
JoeMo, 63Falcondude

It worked !
I am faithful to this board as long as I live.THANK YOU
:-D

P.S-JoeMo beat you by one minute :eeek:
You are welcome - thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,223,719
Messages
6,174,089
Members
452,542
Latest member
Bricklin

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