Why is my IF statement not working

DorianC

New Member
Joined
Jun 17, 2008
Messages
2
Cell G5 = Day()-F5
Cell G5 is titled "Days left"
F5 is titled "expires date" -formated 1/1/01
So the outcome to G5 is a integer in days

When I put
=IF(G5>90,"NO","YES")
into H5 which is titled "Send email"
H5 column does not change it just displays my equation.

This is becoming really fursterating!

I opened a new excel and it worked that is why I am not sure why it is not working for this one!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
im not exactly sure why this happens but if you change the format of the cell you entered your formula into to "general" and re-enter the formual it will work. (you can also just click on the = sign on the formula bar then click the check mark or hit enter. I believe if you look at the current format it will be text
 
Upvote 0
First, DAY() is not an Excel function! (At least in USA version)You need to use TODAY().
Make sure G5 is formatted as General
If, however, which I assume, your expires date is in the future, I believe your formula should be F5-TODAY()

Your IF formula is correct
HTH
lenze
 
Upvote 0
lenze

I'm just joshing.:)

Did you forget about this?
Excel Help said:
DAY

See Also
Returns the day of a date, represented by a serial number. The day is given as an integer ranging from 1 to 31.
For more information about how Microsoft Excel uses serial numbers for dates, see the Remarks section.
 
Upvote 0
Yes, Norie, I had a senior moment, The point was, it was the wrong function for what the OP said they were doing and requires an argument.

lenze
 
Upvote 0
I was having the problem and struggled and got a little frustrated. Excel is never wrong!

What I did is just re-enter the number in the reference cell and...BANG!!!

Hey...it worked for me..maybe it could help you too.
 
Upvote 0

Forum statistics

Threads
1,221,618
Messages
6,160,872
Members
451,674
Latest member
TJPsmt

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