+ Reply to Thread
Results 1 to 5 of 5

EDATE (but with a formula instead of written date)

  1. #1
    Registered User
    Join Date
    04-21-2021
    Location
    Gloucester, England
    MS-Off Ver
    Microsoft 365
    Posts
    13

    EDATE (but with a formula instead of written date)

    Bonjour,

    So I am using a formula to calculate 6months on from a date. However the cell in question is also a formula. This works, until I want it to show blank when no date is there. I have found multiple options which should work, however as my cell is not "blank" exactly because there is a formula there, it doesnt work?

    Formula:

    =IF(A2<>"",EDATE(A2,6),"")

    I have read that this arguement works as: If A2 is Blank, show Blank, but if it isnt, work out the EDate formula. Am I correct in thinking it doesnt work because I have a formula there? Currently I am getting: 01/07/1904 which is 6 months after 01/01/1904 which I believe is the default date for 0? I have tried it on a written date instead of my vlookup formula and it works so I think the issue is my A2 is not written and is a formula.

    Any thoughts?

    Solution: =IF((A2<>"")*(A2<>0),EDATE(A2,6),"")
    Last edited by Literae; 05-13-2021 at 08:03 AM. Reason: SOLVED

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: EDATE (but with a formula instead of written date)

    Try this

    =IFERROR(EDATE(1/(1/A2),6),"")
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    04-21-2021
    Location
    Gloucester, England
    MS-Off Ver
    Microsoft 365
    Posts
    13

    Re: EDATE (but with a formula instead of written date)

    Quote Originally Posted by kvsrinivasamurthy View Post
    Try this

    =IFERROR(EDATE(1/(1/A2),6),"")
    Hi KV, tried that but says "too many arguments". I tried it with a written date and works fine, but not work but I put the vlookup cell as the reference (A2). Only seems to work if A2 is manually written.

    Thanks anyway!

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: EDATE (but with a formula instead of written date)

    Try:

    =IF((A2<>"")*(A2<>0),EDATE(A2,6),"")

  5. #5
    Registered User
    Join Date
    04-21-2021
    Location
    Gloucester, England
    MS-Off Ver
    Microsoft 365
    Posts
    13

    Re: EDATE (but with a formula instead of written date)

    Omg it works! Thank you!

+ 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. Expiration Date with Edate accounting for leap years
    By Chris69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2021, 10:19 AM
  2. Change written date (Day, day month time timezone) to date string
    By ABBOV in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2017, 05:08 AM
  3. [SOLVED] SUMIFS with date written in formula
    By trolle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-10-2017, 06:06 AM
  4. EDate formula
    By mmurphy1360 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2016, 01:01 PM
  5. Replies: 5
    Last Post: 09-24-2013, 02:40 PM
  6. Convert Long Written Excel Date to Proper Date
    By DavidMichaelangelo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2013, 04:47 PM
  7. date / edate
    By Mike1w in forum Excel General
    Replies: 2
    Last Post: 03-16-2010, 08:06 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