+ Reply to Thread
Results 1 to 14 of 14

Excel 2007 : formula is doing a calculation on an empty cell?

  1. #1
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8

    formula is doing a calculation on an empty cell?

    Hello everyone. I am writing a spreadsheet that is used for booking appointments in a doctors office and I want it to show amount of days since the patient has been initially seen. I have a formula that Subtracts the date seen from the current date, but it is producing a result even when a date seen is NOT put in the cell that the formulas is using to calculate the answer. I'm not sure what to do.
    Last edited by JeJaOs; 10-24-2008 at 10:09 AM.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    If your formula is:

    =TODAY()-A1

    You can change it to:

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

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8

    Thanks..

    Can I submit my spreadsheet? New here and am still getting to know the furom...

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Sure, attach it to the post.

  5. #5
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8

    Cool....thank you!

    Have a look in the "Weeks Wait" column and notice the answer without a date put in the date seen column.Have a look at L27 and see what you think of this formula. I appreciate your help. Thanks again.

    Jeff
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi Jeff.

    By "date seen" do you mean "Date Consented"? If so, the formula you entered is correct, and you can copy it to the other rows.

    Jason

  7. #7
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8
    Great! On the cell that I have the formula, there is a green corner? Is there a way to fix that? And yes....Date Consented is the right one. I just got up from working two full days on a job without sleep. Probably a typo or two thru these posts I would think.....

  8. #8
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8
    I fixed it. It was just an Excel note to tell me that the formula differs from the formulas in the rest of the spreadsheet. I deleted them and inserted this one in the other cells. Again, thanks so much for your help. My better half will now be able to use this at work. She thanks you too. Have an Awesome day!!!

  9. #9
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad it helped.

  10. #10
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8
    Can you have a look at the conditional formatting in Column N and also the IF formulas in column N and see what you think? seems to kinda do the same thing as my date problem. Thanks :-)

  11. #11
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8
    here's the updated form.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Here you go.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    10-12-2008
    Location
    Vancouver, BC, Canada
    Posts
    8
    Thanks Jason! I hope I can help you sometime...

  14. #14
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad it helped.

+ 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