+ Reply to Thread
Results 1 to 6 of 6

If not weekday?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    If not weekday?

    Hi,
    I am trying to find out the deficit between target and achieved each day. I am doing this by subtracting the achieved amount from the target amount and then adding the deficit the following day and replicating the process once again. However I have come across a little difficulty as I cant do this without including a Saturday and Sunday can anyone help me with this? I have attached a workbook with the column highlighted.
    Thanks
    Johnny
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: If not weekday?

    Can you explain exactly what the column should do? You said you didnt want Saturdays or Sundays included but there are rows of data in the sheet for Saturdays?

    If its just that you dont want to run the BA10-BG10 calc if its a weekend then this should do it
    =IF(NETWORKDAYS(A10,A10)>0,BA10-BG10,0)
    (you may want to change the FALSE outcome to something other than zero)
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    09-05-2014
    Location
    Montreal
    MS-Off Ver
    2007
    Posts
    22

    Re: If not weekday?

    Tracker.xlsm Here. I used the "weekday" function to create a boolean function returning "true" if the date passed as argument is a weekday.

  4. #4
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: If not weekday?

    Sorry for not being clear, I need the expression to skip Saturdays and Sundays in column BB so that it does not add the amount the previous deficit amount onto the total making the data inaccurate.

  5. #5
    Registered User
    Join Date
    09-05-2014
    Location
    Montreal
    MS-Off Ver
    2007
    Posts
    22

    Re: If not weekday?

    Isn't that the case in the file I posted? When I look at it, cell BB16 is Friday and the two cells beneath it, Saturday and Sunday, stay at the same value, and the next calculation occurs at Monday's line.

  6. #6
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: If not weekday?

    ggs22, Thats is correct working perfectly now, many thanks

+ 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] Calculate weekday end date based on sum of weekday start date and cell value
    By Rerock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2014, 09:17 AM
  2. [SOLVED] If Weekday() = vbSaturday Or Weekday() = vbSunday Then
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2014, 09:48 AM
  3. [SOLVED] Not weekday
    By Arne Hegefors in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2006, 01:20 PM
  4. which weekday?
    By Arne Hegefors in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2006, 11:35 AM
  5. Is weekday?
    By Arne Hegefors in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2006, 08:35 AM
  6. Weekday
    By LB79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2006, 10:05 AM

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