+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Need help on an IF formula IF function problem

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    OTtawa, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Need help on an IF formula IF function problem

    I am fairly new to this and have created an IF function to find the days between two dates. The date fields may not always be populated because they represent dates of completion in a continuum. If the date fields are not populated I want an "NA" to appear, if a date appears in only the first field I want to the days to be the days to today's date from the date in the field, and if both fields are populated I want the days between the two dates.

    =IF(OR(E:E>0&F:F>0,E:E >0&F:F=0), IF(F:F=0, DAYS360(E:E,TODAY(),FALSE), DAYS360(E:E,F:F, FALSE)), "NA")

    The days appear in both cases but the "NA" does not appear if the fields are blank instead the number 40359 appears.

    Please help.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Need help on an IF formula IF function problem

    Perhaps

    =IF(SUM(E2,F2)=0,"NA",IF(F2="",Today()-E2,F2-E2)) copied down

    assuming starting at row 2.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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