+ Reply to Thread
Results 1 to 18 of 18

Count days elapse using if isblank statement that excludes weekends

  1. #1
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Count days elapse using if isblank statement that excludes weekends

    I've been working with this database that counts the number of days from the date assigned to date finished. I am using if isblank formula but i need to exclude the weekends

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count days elapse using if isblank statement that excludes weekends

    Need more info.

    Maybe post a SMALL sample file so we can see what your data looks like.

    A SMALL sample file will have about 20 rows and 2 or 3 columns worth of data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count days elapse using if isblank statement that excludes weekends

    Maybe this function will do it

    =NETWORKDAYS(StartDate,EndDate)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    I have found the formula = NETWORKDAYS(A1, TODAY()) but haven't tried it yet. thanks for your response!

  5. #5
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    Also, i need it to stop counting when the work has ended

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count days elapse using if isblank statement that excludes weekends

    Maybe something like this...

    A1 = start date
    B1 = end date (but this cell might be empty)

    =NETWORKDAYS(A1,IF(B1="",TODAY(),B1))

  7. #7
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    Thanks tony. This almost solved my problem but it should start counting on the day after the start date

  8. #8
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    Hi tony, this is the formula ive been working on

    =IF(ISBLANK(C2),today()-A2,C2-A2)

  9. #9
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    I need to exclude weekends

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count days elapse using if isblank statement that excludes weekends

    Quote Originally Posted by jedaicore View Post
    Thanks tony. This almost solved my problem but it should start counting on the day after the start date
    Try this...

    =NETWORKDAYS(A1-1,IF(B1="",TODAY(),B1))

  11. #11
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    Still the same

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count days elapse using if isblank statement that excludes weekends

    You're going to have to show us some examples along with the expected results.

  13. #13
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    sample.xlsx

    Here's my sample sheet.

    1. No weekends included in the counting
    2. Stops counting when the report has been completed

    Thanks so much!

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count days elapse using if isblank statement that excludes weekends

    Can you provide more examples? 10 to 15 examples will help.

    Also, manually enter the results you expect in column D. If the formulas are not retuning the results you expect then seeing those incorrect results doesn't help us. Better if you manually enter the results.

  15. #15
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    Hi Tony,

    Thank you for your patience. Attached is the sample sheet. I entered the results manually as instructed.

    thanks.

    sample.xlsx

  16. #16
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count days elapse using if isblank statement that excludes weekends

    Using this formula I get the same results as the results you expect:

    =NETWORKDAYS(A2+1,IF(C2="",TODAY(),C2))

    Except on row 9. Your expected result is 12 but the formula returns 14.

    I think if you double check the expected result you'll see that the correct result should be 14 which the formula does return.

  17. #17
    Registered User
    Join Date
    08-29-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    10

    Re: Count days elapse using if isblank statement that excludes weekends

    Wow! This works like a charm. Thank you so much!!!!!

  18. #18
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count days elapse using if isblank statement that excludes weekends

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count Sickness days excluding weekends
    By Cliff Gathern in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2013, 04:18 AM
  2. [SOLVED] Count only work days, not weekends
    By greenjl7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2013, 11:56 AM
  3. Replies: 4
    Last Post: 04-28-2010, 04:25 PM
  4. calculate a 24 hour cycle time which excludes weekends and public holidays
    By rammergu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2009, 05:44 AM
  5. Replies: 2
    Last Post: 04-08-2005, 03:06 PM

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