Conditional formatting

Opgelost

New Member
Joined
Dec 6, 2014
Messages
44
Dear all,

I want to do the following.

Highlight the cell in column G and H if the total value of the cell in column G and H is not the same as the value written in the corresponding cell in column E.

So for example:

G1 (100 euro) and H1 (2900 euro) together are 3000 euro, but the cell E1 is 2900. This should make excel to highlight cell G1 and H1, because the value is not the same as E1. But is if the value is in E1 3000 euro, than it should NOT highlight E1, because the value is the same as the total value of G1 and H1 together.

Thank you very much!

Kind regards,
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
1. highlight the range you want to apply the conditional formatting to
2. on the home tab, styles, select CF
3. select new rule, select use formula
4. enter =$G1+$H1<>$E1
format fill as needed
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,365
Members
449,155
Latest member
ravioli44

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