+ Reply to Thread
Results 1 to 2 of 2

Datedif and If

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2008
    Posts
    8

    Datedif and If

    I'm trying to figure out how to combine these two functions
    =IF(I2>30,"YES","NO")
    =DATEDIF(H2,NOW(),"YD")

    Basically, I want to know if 30 days has past since the date entered. If it has past to output a Yes, if not, a No. Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,957
    Just combine your two conditions:
    =IF(DATEDIF(H2,NOW(),"YD")>30,"yes","no")
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1