Edate #Name error

Posted on 2012-09-21
Last Modified: 2012-09-21
Hi Experts

I am having trouble with the following formula
In cell B2 I have Aug
In cell A2 I have =Edate(B2,-1)

To give me July in A2 but I am getting. #Name ? Error

I have formatted the cell to custom mmm

What's wrong here???
Question by:route217
    LVL 31

    Expert Comment

    by:Rob Henson
    Is the value of B2 literally just the word Aug or is it an actual date formatted to "mmm"?

    It needs to be an actual date.

    Rob H
    LVL 50

    Expert Comment


    The Name error means that an unknown function is used.
    what version of Excel? Edate is only available when you activate the Analysis ToolPak in versions before 2007.

    Does B2 have the TEXT "Aug" or is it a real date? If it is a real date, then the Name error points to the function not being known. If it is a text, then the Value error will be displayed, because Edate needs a real date to work with.

    cheers, teylyn

    Author Comment

    Hi rob

    The date is in cell 01/08/2012 formatted to dd/mm/yyyy

    Author Comment

    Hi Teylyn

    I am using present. Also is there a function compat wit both 03 and 07..
    LVL 50

    Expert Comment

    And, as a general good practice rule for designing workbooks: Data and formulas should flow from top left to bottom right, because that way they will be aligned with the way Excel looks at the spreadsheet and will get calculated faster.

    A formula ideally should only refer to cells above and to the left, not to cells below and to the right.

    That's the golden rule. There are always exceptions, of course.
    LVL 50

    Accepted Solution

    OK, in Excel 2003 click Tools > Add-ins and tick the check box next to "Analysis ToolPak"

    Depending on your setup, you may need to provide the Office installation disk/location.

    cheers, teylyn

    Author Comment

    Thanks for the feedback experts works

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    Time Clock in Excel issues 5 26
    VBA Help TT V.1 9 28
    Min Month2 5 15
    Revise Excel macro to include missing information 4 18
    Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
    Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
    The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
    This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now