Week 1 = A, Week 2 = B, etc

channdy

New Member
Joined
Aug 29, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi guys,
I have alot of data and we run a 4 week rotating roster. (A, B, C, D)
Does anyone know how to assign these using either a date or week of year field?
i.e.
Date (I have)Week of year (I have)Week of roster (I need!)
02/01/20241B
26/08/202435B
30/12/202453D

Many thanks in advance for your help!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Welcome to the MrExcel board!

:confused: I don't understand your sample results since there you have Week 1 as B yet in your thread title it says Week 1 = A

See if this (in the top cell of the results column) does what you want. Adjust the range to suit your actual data.

24 08 29.xlsm
BC
1WeekRoster
21A
335C
453A
Roster
Cell Formulas
RangeFormula
C2:C4C2=MID("ABCD",MOD(B2:B4-1,4)+1,1)
Dynamic array formulas.
 
Upvote 1
Solution
Welcome to the MrExcel board!

:confused: I don't understand your sample results since there you have Week 1 as B yet in your thread title it says Week 1 = A

See if this (in the top cell of the results column) does what you want. Adjust the range to suit your actual data.

24 08 29.xlsm
BC
1WeekRoster
21A
335C
453A
Roster
Cell Formulas
RangeFormula
C2:C4C2=MID("ABCD",MOD(B2:B4-1,4)+1,1)
Dynamic array formulas.
IT WORKED!!! Thank you so much
Title was just example- Table had correct weeks I used your formula and changed it to "BCDA" and it worked perfectly for 12000 odd lines.
Genius thank you
 
Upvote 0
You're welcome. Thanks for the follow-up. Glad you were able to adjust. :)
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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