Auxie

New Member
Joined
Jun 21, 2017
Messages
10
Hi All,

I have this formula:

PHP:
=IF(AND(G301<>0,G301<>"N/A"),IF(TODAY()>=G301,"Yes","No"),"")

It works for some of my spreadsheet but then stops.

Any ideas why?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
What does works mean? Does G301 contain an error when it doesnt work?
 
Upvote 0
Apologies i should have explained better.

I am tracking expiry dates so column G is the date of expiry.

In some rows it works and the ones it doesn't its not recognizing that the date is in not "Today"
 
Last edited:
Upvote 0
How does column G get filled in? Try this formula on a date that doesnt work:

=ISNUMBER(G1)

Obviously change the 1 to the correct row. It could be that your dates arent true dates and are being seen to excel as text. Any text is greater than TODAY().
 
Upvote 0
Could be that the data in column G has a time component but TODAY() starts at midnight. Try this instead:

Code:
=IF(AND(G301<>0,G301<>"N/A"),IF(TODAY()>=INT(G301),"Yes","No"),"")

WBD
 
Upvote 0

Forum statistics

Threads
1,215,637
Messages
6,125,963
Members
449,276
Latest member
surendra75

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