+ Reply to Thread
Results 1 to 3 of 3

EDATE function problem calculating blank cell

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    30

    EDATE function problem calculating blank cell

    I'm using the EDATE function to calculate due dates. Col A is 'Start Month' & Col B is 'month frequency'

    In Col C I use:
    Please Login or Register  to view this content.
    Which returns the due date in C2.

    But having an issue: when there's a date in Col A but Col B is empty - Col C is returning the value of Col A instead of being blank.

    I tried:

    Please Login or Register  to view this content.
    But isn't working. Can anyone advise the best solution to this problem.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: EDATE function problem calculating blank cell

    " " is a space, for a blank use "" like this

    =IF(B2="","",EDATE(A2,B2)
    Audere est facere

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: EDATE function problem calculating blank cell

    Maybe this...

    =IF(COUNT(A2:B2)<2,"",EDATE(A2,B2))

    Format as Date
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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