+ Reply to Thread
Results 1 to 6 of 6

IF and EDATE

  1. #1
    Registered User
    Join Date
    04-27-2016
    Location
    Brooklyn
    MS-Off Ver
    2010
    Posts
    46

    IF and EDATE

    I am using the following formula to calculate a due date and leave blank if nothing is entered. I want to also add a a rule so if "NA" is entered in the reference cell (J5), then "NA" is also shows up in the current cell.

    =IF(J5,EDATE(J5,6),"")

    Any help would be appreciated. Thanks!

    Elise

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: IF and EDATE

    try
    =IF(J5,EDATE(J5,6),J5)

    then it should show blank if J5 is blank and show NA if J5 is NA and the due date if any other value is entered

  3. #3
    Registered User
    Join Date
    04-27-2016
    Location
    Brooklyn
    MS-Off Ver
    2010
    Posts
    46

    Re: IF and EDATE

    Thanks! That works but if the cell is blank it returns a date of "1/0/1900". Is there a way to just have it stay blank?

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: IF and EDATE

    Easiest way I can think of is to put a conditional formatting rule on the cell with the formula that when cell is blank format is set to text that should show a blank cell instead of the strange date

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF and EDATE

    Try this:

    =IF(J5="NA","NA",IF(J5="","",EDATE(J5,6)))

  6. #6
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: IF and EDATE

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This checks if J5 is either zero, blank or non-numerical
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] EDATE
    By David Billigmeier in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 07:05 PM
  2. EDATE
    By David Billigmeier in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 05:05 PM
  3. [SOLVED] EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  4. [SOLVED] EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. [SOLVED] EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  6. EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  7. EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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