# Excel - IF Function Problem - Expert Solution

Question description:
This user has given permission to use the problem statement for this blog.

i want to use an if formula to add two cells together and if when they are added the total is zero, i want the cell to change colour.
Solved by A. Y. in 20 mins
This is the chat thread from the real Excelchat help session. It contains no private user information.
User 11/05/2018 - 01:41
hi
Excelchat Expert 11/05/2018 - 01:42
Hello
Excelchat Expert 11/05/2018 - 01:42
Welcome to got it pro
User 11/05/2018 - 01:42
thanks. do you think that you will be able to help with my question?
Excelchat Expert 11/05/2018 - 01:42
I believe you want a conditional formatting.
Excelchat Expert 11/05/2018 - 01:42
Yes, I think I can help. :)
User 11/05/2018 - 01:43
yes i want conditional formatting but with two cells being added together to give the value of zero which will change the colour of the cell
Excelchat Expert 11/05/2018 - 01:43
No a problem. The conditional formatting will work the same. Here is how to do it.
Excelchat Expert 11/05/2018 - 01:44
Let's assume we want to add A1 and B1 in C1. Then the formula is =A1+B1 right?
User 11/05/2018 - 01:45
yep
Excelchat Expert 11/05/2018 - 01:45
Okay, now we will select cell C1, then click on conditional formatting.
Excelchat Expert 11/05/2018 - 01:46
Conditional Formatting->Highlight Cell Rule->Equal To
Excelchat Expert 11/05/2018 - 01:47
This will bring a pop up box, in the value box input 0.
Excelchat Expert 11/05/2018 - 01:47
Then click ok.
Excelchat Expert 11/05/2018 - 01:47
Makes sense?
User 11/05/2018 - 01:48
fantastic thanks :)
User 11/05/2018 - 01:48
good day
Excelchat Expert 11/05/2018 - 01:48
Glad to be able to help.

This is the output file from the real Excelchat help session:
This is an example of the expert help you can get. It contains no private user information.

Get instant expert help with Excel and Google Sheets

#### Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Your privacy is guaranteed. Your session will not be used for blog unless you give us persmission.