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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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")
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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().
 

BAlGaInTl

Well-known Member
Joined
May 7, 2003
Messages
1,082
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")
 

noremac

New Member
Joined
Mar 10, 2009
Messages
2
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,814
Messages
5,638,492
Members
417,028
Latest member
JFCLUK

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
Top