+ Reply to Thread
Results 1 to 7 of 7

Help! Urgent

  1. #1
    Registered User
    Join Date
    09-22-2004
    Posts
    4

    Help! Urgent

    Column a = a date such as 1/25/04. Column b = a later date such as 2/25/04
    Column c = the total number of days between the two dates.
    The problem I am having is when I don't have a date in column b yet I get the
    #VALUE! or FALSE message. Is there a way to still have the formula in the cell without getting the error messages, ie the c cell just stays blank if there is no date in b yet? Also if I am entering these dates down a column say 100 lines or so. Column d I need to tell me what the average number of days is of column c again without error messages. The formula I am using in C is
    =IF(B1>0,B1-A1) If B1 does not have a date yet I get the error message.
    The formula I am using for D is =AVERAGE(C1:C100) Any help would be greatly appreciated as usual.

    Thanks in Advance

  2. #2
    Forum Contributor
    Join Date
    04-30-2004
    Posts
    122
    See my last post to you.

    IF(B1="","",B1-A1)

  3. #3
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by mikeeee
    Column a = a date such as 1/25/04. Column b = a later date such as 2/25/04
    Column c = the total number of days between the two dates.
    The problem I am having is when I don't have a date in column b yet I get the
    #VALUE! or FALSE message. Is there a way to still have the formula in the cell without getting the error messages, ie the c cell just stays blank if there is no date in b yet? Also if I am entering these dates down a column say 100 lines or so. Column d I need to tell me what the average number of days is of column c again without error messages. The formula I am using in C is
    =IF(B1>0,B1-A1) If B1 does not have a date yet I get the error message.
    The formula I am using for D is =AVERAGE(C1:C100) Any help would be greatly appreciated as usual.

    Thanks in Advance
    Try this ...

    =if(B1="","",B1-A1)
    BenjieLop
    Houston, TX

  4. #4
    Registered User
    Join Date
    09-22-2004
    Posts
    4
    Thanks for the help

  5. #5
    Registered User
    Join Date
    09-22-2004
    Posts
    4

    Unhappy

    Formula works but still get the #VALUE! error on the empty cells.

    Any suggestions?

  6. #6
    Forum Contributor
    Join Date
    04-30-2004
    Posts
    122
    What is the formula where the error is coming up? Is it the =if(B1="","",B1-A1) formula or is it in a different formula? Can you give me an example?

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451
    I tried your formulas and didn't get any errors.

    I did, however, get the #VALUE error when I typed the dates exactly as you show them. That's because on my comp in order to type the date of Jan 25, 2004 I type 4/1/25.
    If you typed 1/25/04 and entered did the "date" stay to the right of the cell (if it did it was recognized) or did it move to the left (if so did its not a valid date)?

    Make sure your date entries are recognized as dates and your formulas will work.

+ 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