+ Reply to Thread
Results 1 to 3 of 3

Formula help - If condition on a date field

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    5

    Formula help - If condition on a date field

    Hi,

    I have a requirement to write a formula to determine and flag the date to YES or NO if the date falls in the next 5 days and I wrote my code as below but I am not able to correctly compile the formula. Please give suggestions ..

    ‘=IF((N2-TODAY())<5;"Yes";"No")’

    Where N2 is the column which has the date field.

    Regards

    GP Kumar

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,164

    Re: Formula help - If condition on a date field

    Hi GP Kumar ,

    Find the attached with a normal cell formula and VBA code that does the same thing.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-13-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Formula help - If condition on a date field

    Hi Marvin,

    Thank You and it fixed the formula and the error and thanks for the second alternative option.

    Regards
    GP Kumar

+ 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