+ Reply to Thread
Results 1 to 3 of 3

Date formula

  1. #1
    Registered User
    Join Date
    02-02-2007
    Posts
    35

    Date formula

    I am not sure whether this is possible, but I want to do a forumla that I can drag along the row, which will give me dates consequtively from say today, but that excludes weekends-so just business days.

    so eg: 02Feb 05Feb 06Feb 07Feb 08Feb 09Feb

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by chedges
    I am not sure whether this is possible, but I want to do a forumla that I can drag along the row, which will give me dates consequtively from say today, but that excludes weekends-so just business days.

    so eg: 02Feb 05Feb 06Feb 07Feb 08Feb 09Feb

    Thanks in advance
    try (in B1) date in A1, formula fill leftwards


    =IF(WEEKDAY(OFFSET(B1,0,-1),2)=5,OFFSET(B1,0,-1)+3,OFFSET(B1,0,-1)+1)

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,718
    You can do this without a formula. If you drag the date in A1 across as far as you need then use Edit > Fill > Series and choose weekday option...

    ...or with a formula, using Analysis ToolPak function WORKDAY

    =WORKDAY(A1,1)

    or without Analysis ToolPak,

    =A1+CHOOSE(WEEKDAY(A1),1,1,1,1,1,3,2)

+ 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.6.0 RC 1