IF AND function with a DATE calculation

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
871
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am hoping someone could help me clean up a formula of mine.

I am looking to have the formula calculate between the current date and date received and then if this result is greater than 5 AND another cell ="0" return a "true" result, other wise "false".

This is the formula I wrote but I am missing something....

=if(and((DATEDIF(TODAY(), G2, "d")>5),H2="0","true","false")

I hope someone can help me with this.

Thank you

Carla
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try:
Excel Workbook
GHIJ
1Date Rec.
29/23/20190FALSE
39/12/2019TRUE
48/30/2019TRUE
59/20/2019FALSE
Sheet
 
Upvote 0
This formula did not work.
A date appeared in column H. Since it was not "0" it should have returned a FALSE however it returned "TRUE".

Both conditions have to be met to return a true, a date greater than 5 and H = 0 (aka no date).

am I missing something?

Thank you

Carla
 
Upvote 0
I figured it out. was referencing H2 only.

Thank you for all of your help!!!!

:)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,543
Latest member
MartinLarkin

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