IF & TODAY() formula

noremac

New Member
Joined
Mar 10, 2009
Messages
2
Hi

I am trying to create an IF formula that contains a TODAY() formula.

this is the formula =IF(TODAY()>G5," OVERDUE ",IF(AD5="Yes"," No "," OVERDUE "))

I have a spreadsheet that I need to know if something is overdue.

Cell G5 is a date that is 21 days after the received date. Cell AD5 is if it has been approved.

I want my cell to show if the current date TODAY() is greater than G5 I want it to show "OVERDUE" but if Yes has been selected in AD5 (which is a drop down list) then I want it to show "No"

Not sure if that make sense but any help is greatly appreciated.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
It's not clear what you want it to say if it is not OVERDUE, or if something other than Yes is selected in AD5, I'm assuming the choices are Yes or No.
Also not sure why you are putting spaces around your text results, you can add them back if you need them for some reason.

Is this what you need?

=IF(AND(TODAY()>G5,AD5<>"Yes"),"OVERDUE","NO")
 
Upvote 0
If you have a lot of these comparisons, you may want to put =TODAY() in its own cell and then refer to that in the formula as TODAY is a volatile function, which means that if you make any change it has to recalculate this, even if the change does not affect the formula that contains =TODAY().
 
Upvote 0
Hi

I am trying to create an IF formula that contains a TODAY() formula.

this is the formula =IF(TODAY()>G5," OVERDUE ",IF(AD5="Yes"," No "," OVERDUE "))

I have a spreadsheet that I need to know if something is overdue.

Cell G5 is a date that is 21 days after the received date. Cell AD5 is if it has been approved.

I want my cell to show if the current date TODAY() is greater than G5 I want it to show "OVERDUE" but if Yes has been selected in AD5 (which is a drop down list) then I want it to show "No"

Not sure if that make sense but any help is greatly appreciated.

How about

=IF(AND(TODAY()>G5,AD5<>"Yes"),"OVERDUE","NOT OVERDUE")
 
Upvote 0
It's not clear what you want it to say if it is not OVERDUE, or if something other than Yes is selected in AD5, I'm assuming the choices are Yes or No.
Also not sure why you are putting spaces around your text results, you can add them back if you need them for some reason.

Is this what you need?

=IF(AND(TODAY()>G5,AD5<>"Yes"),"OVERDUE","NO")

Thankyou. Worked perfectly.
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,156
Members
448,948
Latest member
spamiki

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