Auto Assign Staff Names to a list of dates in Google Sheets

jl2509

Board Regular
Joined
Oct 30, 2015
Messages
198
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I have shared a google sheet Roster Sheet
with the issue I have where I need some help.

The list of names tab needs to populate the Roster columns to the end of the months for the year 2023 and stop at the end of the month to continue at the next month without breaking the order of he names listed.

Is this possible please?

Your support is much appreciated.
 
Last edited by a moderator:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about in A2 dragged down
Excel Formula:
=INDEX(Names!$A$1:$A$8,MOD(B2-DATE(2023,1,1),8)+1)
and change B2 to D2 for the next column.
 
Upvote 0
Genius Fluff,

Much appreciated.

Any chance you could explain how that formula work for my understanding please.
 
Upvote 0
The Mod function will return numbers from 0 to 7 to which we add 1 & that tells the index function what row to return.
 
Upvote 0
Is there a way to make this dynamic based on the names being reduced or increased rather than manually changing the formula?
 
Upvote 0
How about
Excel Formula:
=INDEX(FILTER(Names!$A$1:$A$100,Names!$A$1:$A$100<>""),MOD(B2-DATE(2023,1,1),ROWS(FILTER(Names!$A$1:$A$100,Names!$A$1:$A$100<>"")))+1)
 
Upvote 0
Great stuff Fluff
One last question.

Is there a way to do this using importrange in Cell A2, C2, E2 etc
 
Upvote 0
Absolutely no idea. I Don't use Sheets.
 
Upvote 0
Ok no worries, your formula works great so I will use this for now and put it out to see if any can fathom it using importrange.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,656
Latest member
earth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top