Conditional Formating Background Based on If

dsnake

New Member
Joined
Sep 5, 2014
Messages
7
I have a spreadsheet I'd like to conditional format a cell based on an if. Here is my scenario:

1. A1 is formula that sums a population of data in number format
2. B1 and B2 get their numbers from the same population as A1 but are different formulas however B1 plus B2 should equal A1
3. What I would like to do is conditional format B1 and B2 to reflect a red background if their sum does not equal A1
4. Thanks for any help you can give.

Dave
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the MrExcel board!

Select B1:B2 and apply the Conditional Formatting shown below.

Excel Workbook
AB
12015
26
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B11. / Formula is =$A$2<>B$1+B$2Abc
 
Upvote 0
sorry if you get this twice, thanks for the help it did work and I was able to add green if they equaled. My only other question is...why $A$2 and no $A$1
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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