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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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,216,124
Messages
6,128,979
Members
449,480
Latest member
yesitisasport

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