+ Reply to Thread
Results 1 to 4 of 4

Formula Worked previously and now shows #value!

  1. #1
    Registered User
    Join Date
    04-26-2011
    Location
    Scottsdale, Arizona
    MS-Off Ver
    Excel 2000
    Posts
    2

    Formula Worked previously and now shows #value!

    I'm using the following formula to display the SUM number of days fom within a a series of dates

    =SUM(DATEDIF(A2:A23,B2:B23,"d"))

    for example Column A has the start date and Column B has the end date.

    9/1/2009 10/1/2009
    10/1/2009 10/31/2009
    10/17/2009 10/24/2009
    10/24/2009 10/31/2009
    11/7/2009 11/14/2009
    11/10/2009 11/19/2009
    12/25/2009 12/31/2009
    12/25/2009 1/1/2010

    The above formula had worked previously but now when I try to use the formula instead of showing the total number of days I get #VALUE!

    If i click on the equal sign in front of my formula the box that pops up shows the correct sum that my formula should display but for some reason it's not displaying the number down in the cel.

    I'm running Excel 2000 on windows XP

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

    Re: Formula Worked previously and now shows #value!

    Is there any text values in the ranges or spaces entered with spacebar?
    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.

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

    Re: Formula Worked previously and now shows #value!

    That formula is an "array formula" and needs to be confirmed with CTRL+SHIFT+ENTER

    select cell with formula then press F2 key to select formula and then hold down CTRL and SHIFT keys and press ENTER. If done correctly you should see curly braces like { and } around the formula.

    You can avoid "array entering" by using SUMPRODUCT, i.e.

    =SUMPRODUCT(DATEDIF(A2:A23,B2:B23,"d"))

    ....or you probably don't need DATEDIF - for dates you can just subtract one from the other, i.e.

    =SUMPRODUCT(B2:B23-A2:A23)
    Audere est facere

  4. #4
    Registered User
    Join Date
    04-26-2011
    Location
    Scottsdale, Arizona
    MS-Off Ver
    Excel 2000
    Posts
    2

    Cool Re: Formula Worked previously and now shows #value!

    Quote Originally Posted by daddylonglegs View Post
    That formula is an "array formula" and needs to be confirmed with CTRL+SHIFT+ENTER

    select cell with formula then press F2 key to select formula and then hold down CTRL and SHIFT keys and press ENTER. If done correctly you should see curly braces like { and } around the formula.

    You can avoid "array entering" by using SUMPRODUCT, i.e.

    =SUMPRODUCT(DATEDIF(A2:A23,B2:B23,"d"))

    ....or you probably don't need DATEDIF - for dates you can just subtract one from the other, i.e.

    =SUMPRODUCT(B2:B23-A2:A23)
    All three of those fixes worked for me. Thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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