+ Reply to Thread
Results 1 to 8 of 8

Thread: fields that containa formula need to appear blank until data entered

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    fields that containa formula need to appear blank until data entered

    Hi,

    i have two date fields....one date requested eg 02/06/09 (cell C10)...another date completed eg 03/06/09 (cell R10)

    a third field (cell S10) contains the formula: =IF(R10-C10=0,"less than a day",R10-C10)

    so if a request was actioned on the day then it shows as less than a day, otherwise will show how many days it took

    but when this formula is draggeddown all other cells show - less than a day

    how can i make these cells blank whilst still holding the formula?

    also - is there a quick formula to add to show only the amount of wrking days a request took to complete?

    Many thanks
    Last edited by Newport Count; 06-10-2009 at 11:33 AM.

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

    Re: simple formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: fields that containa formula need to appear blank until data entered

    Thanks for taking the time to read and comply with the rule .

    Try:

    =IF(OR(R10="",C10=""),"",IF(R10-C10=0,"less than a day",NETWORKDAYS(C10,R10)))

    NETWORKDAYS is an Analysis Toolpak Function... Tools|Addins >> Analysis Toolpak
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    Re: fields that containa formula need to appear blank until data entered

    thanks - it works but the cells that contain that formula now have a blue outline?

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: fields that containa formula need to appear blank until data entered

    Looks like you have formatting around it... simply entering a formula does not place blue borders around a cell... Go to Format|Cells and check the Borders tab...
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    Re: fields that containa formula need to appear blank until data entered

    yes every other formula i have entered has never given me blue borders!

    problem resolved thanks

  7. #7
    Registered User
    Join Date
    09-25-2008
    Location
    Manchester UK
    Posts
    38

    Re: fields that containa formula need to appear blank until data entered

    =IF(OR(R10="",C10=""),"",IF(R10-C10=0,"less than a day",NETWORKDAYS(C10,R10)))

    using this formula......if requested on 02/06/09 and request completed on 02/06/09 then = 0 working days (less than a day)

    but if requested on 02/06/09 and request completed on 03/06/09 then = 2 working days - and not 1?

  8. #8
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: fields that containa formula need to appear blank until data entered

    Subtract 1.. the Networkdays includes the start date....

    =IF(OR(R10="",C10=""),"",IF(R10-C10=0,"less than a day",NETWORKDAYS(C10,R10)-1))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0