+ Reply to Thread
Results 1 to 4 of 4

Thread: Days of the week (to exclude Saturdays/Sundays)

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Days of the week (to exclude Saturdays/Sundays)

    I am trying to set up a spread sheet where dates are automatically calculated from the previous date using the formula Cell address + 1 (e.g. =Sum(a1+1) but I want to restrict it to the working week. The formula should say something like "=SUM (A1+1 if A1= Monday, Tuesday, Wednesday or Thursday but if A1 = Friday then A1 +3)"

    I probably haven't explained that very well, but if anyone can help I would be grateful

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,225

    Re: Days of the week (to exclude Saturdays/Sundays)

    Here, try his:

    =A1+IF(WEEKDAY(A1,2)<5,1,3)
    "Relax. What is mind? No matter. What is matter? Never mind!"

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    W Europe
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    465

    Re: Days of the week (to exclude Saturdays/Sundays)

    Perhaps =IF(weekday(a1,2)<5,a1+1,a1+3)
    Cheers - THE WARNING I RECEIVED WAS NOT JUSTIFIED

  4. #4
    Registered User
    Join Date
    02-03-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Days of the week (to exclude Saturdays/Sundays)

    Fantastic - that works brilliantly - many thanks

+ 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