+ Reply to Thread
Results 1 to 11 of 11

Start List On First Friday Of The Month

  1. #1
    Registered User
    Join Date
    04-05-2021
    Location
    California
    MS-Off Ver
    2013
    Posts
    4

    Start List On First Friday Of The Month

    Hello,

    I have manually created a list of dates in Column E and a list of employees next to the dates in Column E to show which days they work. Currently there are five employees, named in cells A2:A6, and the first employee listed starts on the first Friday of January and works 7 days, on the second Friday the second employee starts and works for 7 days and the pattern repeats itself down throughout the year.

    I used the CEILING formula in E7 to determine the first Friday of the month (and year as the dates start in January). What I am looking for is for a formula in F7 that pulls in the first employee in the list and then something to fill out the rest of column F to list the employees names every 7 days, hopefully this formula is also smart enough to recognize a change in the number of employees if so happens in future years. Thanks for the help!

    Example of what I currently have:

    Friday,January 1,2021 Bob
    Saturday,January 2,2021 Bob
    Sunday,January 3,2021 Bob
    Monday,January 4,2021 Bob
    Tuesday,January 5,2021 Bob
    Wednesday,January 6,2021 Bob
    Thursday,January 7,2021 Bob
    Friday,January 8,2021 Joe
    Saturday,January 9,2021 Joe
    Sunday,January 10,2021 Joe
    Monday,January 11,2021 Joe
    Tuesday,January 12,2021 Joe
    Wednesday,January 13,2021 Joe
    Thursday,January 14,2021 Joe
    Friday,January 15,2021 Bill
    Saturday,January 16,2021 Bill
    Sunday,January 17,2021 Bill
    Monday,January 18,2021 Bill
    Tuesday,January 19,2021 Bill
    Wednesday,January 20,2021 Bill
    Thursday,January 21,2021 Bill

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: Start List On First Friday Of The Month

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: Start List On First Friday Of The Month

    Questions:

    1. If the number of employees changes, do they continue to work in a 7-day pattern, or does the number of days on also need to reflect the number of employees?
    2. Do you always want to find the first Friday of the year? This will find the first Friday after and including the date in A1: =WORKDAY.INTL(A1-1,1,"1111011")

  4. #4
    Registered User
    Join Date
    04-05-2021
    Location
    California
    MS-Off Ver
    2013
    Posts
    4

    Re: Start List On First Friday Of The Month

    Thanks for the warm welcome!

    1. Yes, the schedule for these employees will always be Friday - Thursday in a 7 day pattern. If there are less then 5 employees they would just cycle through faster.

    2. I created my current list as I am using a VLOOKUP function on a different sheet to look through this list and pull in who is working on which day to fill out a monthly calendar. It's necessary for this list to have at least January 1st - December 31st, and the employees starting on Fridays and ending on Thursday.
    In absence of knowing of a formula to use, my work around for determining when the 1st employee listed starts on the first Friday of the year was by leaving myself room as the first Friday of the year might be on a day from the 1st to the 7th, which is why I am using a formula (changed it to the one you provided ) in E7 as a starting point. From this reference date the other dates cascade up and down to fill out the rest of the year. Using this setup I know E7 is the first Friday of the year, so in F7:F13 I used an absolute cell reference to A2 as I know that's the first employee. I copied this pattern to fill out the rest of the calendar.

    What I have works pretty good, and if employees change it wouldn't take much work to adjust this calendar, but I feel that there is a better way. Currently if we add or subtract employees I would have to change all of the cell references.
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: Start List On First Friday Of The Month

    Can I just check that you are still using Excel 2013 and not something newer?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,145

    Re: Start List On First Friday Of The Month

    See attached

    in E1

    =INDEX($A$2:$A$21,MOD(INT((ROWS($1:2)-1)/7),COUNTA($A$2:$A$21))+1)

    The count (ROWS($1:2)) was set to 2 as "Jill" was shown for 6 days initially.

    If the Employee list changes, then all results prior to the change will be invalid (as COUNTA is used as the counter and hence it will automatically adjust to the new situation from "day 1")

    It may be possible to get round this by using COUNTIFS and "Date Effective" for each Employee. Not tried and hence not tested!
    Attached Files Attached Files
    Last edited by JohnTopley; 04-07-2021 at 03:35 AM.

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,435

    Re: Start List On First Friday Of The Month

    Start in E1:
    =WORKDAY.INTL(A1-1,1,"1111011")-7
    From E2:=E1+1
    F1:
    Please Login or Register  to view this content.
    Drag down
    Attached Files Attached Files
    Quang PT

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: Start List On First Friday Of The Month

    In F1 copied down:

    =INDEX($A$2:$A$20,IF(E1<$A$1,COUNTA($A$2:$A$20),IF(MOD(NETWORKDAYS.INTL(E$1,E1,"1111011"),COUNTA($A$2:$A$20))=0,COUNTA($A$2:$A$20),MOD(NETWORKDAYS.INTL(E$1,E1,"1111011"),COUNTA($A$2:$A$20)))))

    or:

    =INDEX($A$2:$A$20,IF(OR(E1<$A$1,MOD(NETWORKDAYS.INTL(E$1,E1,"1111011"),COUNTA($A$2:$A$20))=0),COUNTA($A$2:$A$20),MOD(NETWORKDAYS.INTL(E$1,E1,"1111011"),COUNTA($A$2:$A$20))))
    Attached Files Attached Files
    Last edited by AliGW; 04-07-2021 at 03:05 AM.

  9. #9
    Registered User
    Join Date
    04-05-2021
    Location
    California
    MS-Off Ver
    2013
    Posts
    4

    Re: Start List On First Friday Of The Month

    Perfect, does exactly what I need it to do. Thanks for your help AliGW!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: Start List On First Friday Of The Month

    Thanks for the comments and rep, however please don't ignore other contributors to your thread - acknowledge all solutions offered. Thanks.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Last edited by AliGW; 04-08-2021 at 02:59 AM.

  11. #11
    Registered User
    Join Date
    04-05-2021
    Location
    California
    MS-Off Ver
    2013
    Posts
    4

    Re: Start List On First Friday Of The Month

    Thanks for your help as well bebo021999 and JohnTopley!

+ 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. What time does overtime start on Friday?
    By apbergemann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2020, 10:36 AM
  2. Formula to identify month that runs From Last Friday to Last Friday
    By Mr Stern 2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2019, 06:23 AM
  3. [SOLVED] Last Friday of the Month
    By k64 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2017, 02:37 PM
  4. [SOLVED] Get a list of dates which are either month end or Friday
    By alice2011 in forum Excel General
    Replies: 5
    Last Post: 12-12-2014, 07:03 AM
  5. Formula for Friday 14 days from start date, but closest to 15th or 30th
    By SiRCYRO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2013, 08:23 PM
  6. How to count all dates in column A using last friday and and next friday friday
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2011, 04:33 PM
  7. [SOLVED] 3rd friday in month
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12: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