# Excel - IF Function Problem - Expert Solution

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

I need to modify my formula below to automatically the change cell color to yellow if the result in result in cell H3 is greater than 30. This formula is in cell H3 =IF(ISNUMBER(B3), TODAY()-B3, " ")
Solved by O. J. in 39 mins
This is the chat thread from the real Excelchat help session. It contains no private user information.
Excelchat Expert 23/08/2018 - 06:09
Hello, I hope you are having a good day. I am here to help with your question.
Excelchat Expert 23/08/2018 - 06:10
Let me put those formulas in the sheets
User 23/08/2018 - 06:10
ok
Excelchat Expert 23/08/2018 - 06:12
so
Excelchat Expert 23/08/2018 - 06:12
Are you looking for a solution that works on Google Sheets or on Offline Excel?
User 23/08/2018 - 06:12
Looking for a solution that works on Excel from Microsoft 365.
Excelchat Expert 23/08/2018 - 06:12
ok
Excelchat Expert 23/08/2018 - 06:13
so now you get to highlight the cell bby using conditional formula
Excelchat Expert 23/08/2018 - 06:14
I will walk you through how to set it
User 23/08/2018 - 06:14
ok
Excelchat Expert 23/08/2018 - 06:15
Excelchat Expert 23/08/2018 - 06:16
Under select rule type, please select Use a formula to determine which cells to format
Excelchat Expert 23/08/2018 - 06:17
at the bottom where you see use a formula to determine which cells to format, please enter the formula =H3>30
Excelchat Expert 23/08/2018 - 06:17
and set the format below, which is to highlight in yellow
Excelchat Expert 23/08/2018 - 06:18
Now when you go to Manage rules, you can set to which range will this rule apply
Excelchat Expert 23/08/2018 - 06:18
I did that on your file and I will send a copy to you so that you can use it as referrence
Excelchat Expert 23/08/2018 - 06:19
Here you are
User 23/08/2018 - 06:20
I am confused, how can I add that in to the formula I already have so it does it automatically each time.
Excelchat Expert 23/08/2018 - 06:20
Excelchat Expert 23/08/2018 - 06:20
it is through conditional formatting
Excelchat Expert 23/08/2018 - 06:20
This conversation will be available for your reference.
Excelchat Expert 23/08/2018 - 06:20
you can refer it anytime
Excelchat Expert 23/08/2018 - 06:20
so let me explain again
Excelchat Expert 23/08/2018 - 06:21
Excelchat Expert 23/08/2018 - 06:21
Under select rule type, please select Use a formula to determine which cells to format
Excelchat Expert 23/08/2018 - 06:21
at the bottom where you see use a formula to determine which cells to format, please enter the formula =H3>30
Excelchat Expert 23/08/2018 - 06:22
after the formula please click on format and fill in yellow
Excelchat Expert 23/08/2018 - 06:22
you can see the preview of what the format looks like
Excelchat Expert 23/08/2018 - 06:22
and when you go to Conditional formatting and Manage rules
Excelchat Expert 23/08/2018 - 06:23
Under show formatting rules for please select this worksheet
Excelchat Expert 23/08/2018 - 06:23
you will see the rule we just created
Excelchat Expert 23/08/2018 - 06:24
there will be a section Applies to where you can select cell H3
Excelchat Expert 23/08/2018 - 06:24
in the copy of excel sheet that I sent you, you can verify all this
Excelchat Expert 23/08/2018 - 06:25
and it does automatically everytime based on the value of the cell#
User 23/08/2018 - 06:25
OK, I think I understand now. I do not add it to my formula in cell H3.
Excelchat Expert 23/08/2018 - 06:25
indeed
Excelchat Expert 23/08/2018 - 06:25
but H3 needs to have the original formula
Excelchat Expert 23/08/2018 - 06:25
=IF(ISNUMBER(B3), TODAY()-B3, " ")
Excelchat Expert 23/08/2018 - 06:25
Would you have any other question for me related to this?
Excelchat Expert 23/08/2018 - 06:26
`Are you with me?
User 23/08/2018 - 06:26
Not at the moment, thank you VERY MUCH!!!
Excelchat Expert 23/08/2018 - 06:27
fantastic
Excelchat Expert 23/08/2018 - 06:27
Excelchat Expert 23/08/2018 - 06:27
Have a fantastic day :)
User 23/08/2018 - 06:27
Yes, you answered my question correctly and you were wonderful! Thank you.
Excelchat Expert 23/08/2018 - 06:27
If you wish, you can end the question and proceed to rating.
User 23/08/2018 - 06:34
Got another question
Excelchat Expert 23/08/2018 - 06:34
User 23/08/2018 - 06:36
After doing the conditional formatting, cell that don't have a date in the B column are showing up with a yellow highlight, even though the result in the H column is blank.
Excelchat Expert 23/08/2018 - 06:36
can you share the rule creted?
User 23/08/2018 - 06:37
Is there a way I can still upload my excel spreadsheet with you?
Excelchat Expert 23/08/2018 - 06:37
yes
Excelchat Expert 23/08/2018 - 06:37
with the button on the right of the chat
User 23/08/2018 - 06:38
OK, I attached it.
Excelchat Expert 23/08/2018 - 06:38
opening
Excelchat Expert 23/08/2018 - 06:42
I will add another rule to bypass this
Excelchat Expert 23/08/2018 - 06:42
If the cell is blank I will remove formatting
User 23/08/2018 - 06:44
Ok, thank you. Lastly, can you show me a formula or rule to have this spreadsheet send me an email when a rental is over 30 days?
Excelchat Expert 23/08/2018 - 06:44
That needs VBA
Excelchat Expert 23/08/2018 - 06:45
The platform is restricted currently on the subject
Excelchat Expert 23/08/2018 - 06:46
I changed the formula sightly to help our cause
Excelchat Expert 23/08/2018 - 06:47
Would you have any other question for me related to this?
User 23/08/2018 - 06:47
OK, great. What do I do to get help with the email situation, purchase another session?
Excelchat Expert 23/08/2018 - 06:47
No the platform has the restriction currently
Excelchat Expert 23/08/2018 - 06:48
We can give solutions related to excel only and without VBA
Excelchat Expert 23/08/2018 - 06:48
Currently it is out of scope but we are hoping that it comes soon
User 23/08/2018 - 06:48
OK, I understand, thank you for all your help.
Excelchat Expert 23/08/2018 - 06:49
You're welcome

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.