auto filling cells based on preset format

jbrown021286

Board Regular
Joined
Mar 13, 2023
Messages
82
Office Version
  1. 365
Platform
  1. Windows
TECH HOURS WORKSHEET 5.0 test.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
1 01JAN24 02JAN24 03JAN24 04JAN24 05JAN24 06JAN24 07JAN24 08JAN24 09JAN24 10JAN24 11JAN24 12JAN24 13JAN24 14JAN24 15JAN24 16JAN24 17JAN24 18JAN24 19JAN24 20JAN24 21JAN24 22JAN24 23JAN24 24JAN24 25JAN24 26JAN24 27JAN24 28JAN24 29JAN24 30JAN25 31JAN26
21-Jan2-Jan3-Jan4-Jan5-Jan6-Jan7-Jan8-Jan9-Jan10-Jan11-Jan12-Jan13-Jan14-Jan15-Jan16-Jan17-Jan18-Jan19-Jan20-Jan21-Jan22-Jan23-Jan24-Jan25-Jan26-Jan27-Jan28-Jan29-Jan30-Jan31-Jan
3
4 01FEB24 02FEB24 03FEB24 04FEB24 05FEB24 06FEB24 07FEB24 08FEB24 09FEB24 10FEB24 11FEB24 12FEB24 13FEB24 14FEB24 15FEB24 16FEB24 17FEB24 18FEB24 19FEB24 20FEB24 21FEB24 22FEB24 23FEB24 24FEB24 25FEB24 26FEB24 27FEB24 28FEB24 29FEB24
51-Feb2-Feb3-Feb4-Feb5-Feb6-Feb7-Feb8-Feb9-Feb10-Feb11-Feb12-Feb13-Feb14-Feb15-Feb16-Feb17-Feb18-Feb19-Feb20-Feb21-Feb22-Feb23-Feb24-Feb25-Feb26-Feb27-Feb28-Feb29-Feb
6
7 01MAR24 02MAR24 03MAR24 04MAR24 05MAR24 06MAR24 07MAR24 08MAR24 09MAR24 10MAR24 11MAR24 12MAR24 13MAR24 14MAR24 15MAR24 16MAR24 17MAR24 18MAR24 19MAR24 20MAR24 21MAR24 22MAR24 23MAR24 24MAR24 25MAR24 26MAR24 27MAR24 28MAR24 29MAR24 30MAR24 31MAR24
81-Mar2-Mar3-Mar4-Mar5-Mar6-Mar7-Mar8-Mar9-Mar10-Mar11-Mar12-Mar13-Mar14-Mar15-Mar16-Mar17-Mar18-Mar19-Mar20-Mar21-Mar22-Mar23-Mar24-Mar25-Mar26-Mar27-Mar28-Mar29-Mar30-Mar31-Mar
9
10 01APR24 02APR24 03APR24 04APR24 05APR24 06APR24 07APR24 08APR24 09APR24 10APR24 11APR24 12APR24 13APR24 14APR24 15APR24 16APR24 17APR24 18APR24 19APR24 20APR24 21APR24 22APR24 23APR24 24APR24 25APR24 26APR24 27APR24 28APR24 29APR24 30APR24
111-Apr2-Apr3-Apr4-Apr5-Apr6-Apr7-Apr8-Apr9-Apr10-Apr11-Apr12-Apr13-Apr14-Apr15-Apr16-Apr17-Apr18-Apr19-Apr20-Apr21-Apr22-Apr23-Apr24-Apr25-Apr26-Apr27-Apr28-Apr29-Apr30-Apr
12
13 01MAY24 02MAY24 03MAY24 04AMAY4 05MAY24 06MAY24 07MAY24 08MAY24 09MAY24 10MAY24 11MAY24 12MAY24 13MAY24 14MAY24 15MAY24 16MAY24 17MAY24 18MAY24 19MAY24 20MAY24 21MAY24 22MAY24 23MAY24 24MAY24 25MAY24 26MAY24 27MAY24 28MAY24 29MAY24 30MAY24 31MAY24
141-May2-May3-May4-May5-May6-May7-May8-May9-May10-May11-May12-May13-May14-May15-May16-May17-May18-May19-May20-May21-May22-May23-May24-May25-May26-May27-May28-May29-May30-May31-May
15
16 01JUN24 02JUN24 03JUN24 04JUN24 05JUN24 06JUN24 07JUN24 08JUN24 09JUN24 10JUN24 11JUN24 12JUN24 13JUN24 14JUN24 15JUN24 16JUN24 17JUN24 18JUN24 19JUN24 20JUN24 21JUN24 22JUN24 23JUN24 24JUN24 25JUN24 26JUN24 27JUN24 28JUN24 29JUN24 30JUN24
171-Jun2-Jun3-Jun4-Jun5-Jun6-Jun7-Jun8-Jun9-Jun10-Jun11-Jun12-Jun13-Jun14-Jun15-Jun16-Jun17-Jun18-Jun19-Jun20-Jun21-Jun22-Jun23-Jun24-Jun25-Jun26-Jun27-Jun28-Jun29-Jun30-Jun
18
19 01JUL24 02JUL24 03JUL24 04JUL24 05JUL24 06JUL24 07JUL24 08JUL24 09JUL24 10JUL24 11JUL24 12JUL24 13JUL24 14JUL24 15JUL24 16JUL24 17JUL24 18JUL24 19JUL24 20JUL24 21JUL24 22JUL24 23JUL24 24JUL24 25JUL24 26JUL24 27JUL24 28JUL24 29JUL24 30JUL24 31JUL24
201-Jul2-Jul3-Jul4-Jul5-Jul6-Jul7-Jul8-Jul9-Jul10-Jul11-Jul12-Jul13-Jul14-Jul15-Jul16-Jul17-Jul18-Jul19-Jul20-Jul21-Jul22-Jul23-Jul24-Jul25-Jul26-Jul27-Jul28-Jul29-Jul30-Jul31-Jul
21
22 01AUG24 02AUG24 03AUG24 04AUG24 05AUG24 06AUG24 07AUG24 08AUG24 09AUG24 10AUG24 11AUG24 12AUG24 13AUG24 14AUG24 15AUG24 16AUG24 17AUG24 18AUG24 19AUG24 20AUG24 21AUG24 22AUG24 23AUG24 24AUG24 25AUG24 26AUG24 27AUG24 28AUG24 29AUG24 30AUG24 31AUG24
231-Aug2-Aug3-Aug4-Aug5-Aug6-Aug7-Aug8-Aug9-Aug10-Aug11-Aug12-Aug13-Aug14-Aug15-Aug16-Aug17-Aug18-Aug19-Aug20-Aug21-Aug22-Aug23-Aug24-Aug25-Aug26-Aug27-Aug28-Aug29-Aug30-Aug31-Aug
24
25 01SEP24 02SEP24 03SEP24 04SEP24 05SEP24 06SEP24 07SEP24 08SEP24 09SEP24 10SEP24 11SEP24 12SEP24 13SEP24 14SEP24 15SEP24 16SEP24 17SEP24 18SEP24 19SEP24 20SEP24 21SEP24 22SEP24 23SEP24 24SEP24 25SEP24 26SEP24 27SEP24 28SEP24 29SEP24 30SEP24
261-Sep2-Sep3-Sep4-Sep5-Sep6-Sep7-Sep8-Sep9-Sep10-Sep11-Sep12-Sep13-Sep14-Sep15-Sep16-Sep17-Sep18-Sep19-Sep20-Sep21-Sep22-Sep23-Sep24-Sep25-Sep26-Sep27-Sep28-Sep29-Sep30-Sep
27
28 01OCT24 02OCT24 03OCT24 04OCT24 05OCT24 06OCT24 07OCT24 08OCT24 09OCT24 10OCT24 11OCT24 12OCT24 13OCT24 14OCT24 15OCT24 16OCT24 17OCT24 18OCT24 19OCT24 20OCT24 21OCT24 22OCT24 23OCT24 24OCT24 25OCT24 26OCT24 27OCT24 28OCT24 29OCT24 30OCT24 31OCT24
291-Oct2-Oct3-Oct4-Oct5-Oct6-Oct7-Oct8-Oct9-Oct10-Oct11-Oct12-Oct13-Oct14-Oct15-Oct16-Oct17-Oct18-Oct19-Oct20-Oct21-Oct22-Oct23-Oct24-Oct25-Oct26-Oct27-Oct28-Oct29-Oct30-Oct31-Oct
30
31 01NOV24 02NOV24 03NOV24 04NOV24 05NOV24 06NOV24 07NOV24 08NOV24 09NOV24 10NOV24 11NOV24 12NOV24 13NOV24 14NOV24 15NOV24 16NOV24 17NOV24 18NOV24 19NOV24 20NOV24 21NOV24 22NOV24 23NOV24 24NOV24 25NOV24 26NOV24 27NOV24 28NOV24 29NOV24 30NOV24
321-Nov2-Nov3-Nov4-Nov5-Nov6-Nov7-Nov8-Nov9-Nov10-Nov11-Nov12-Nov13-Nov14-Nov15-Nov16-Nov17-Nov18-Nov19-Nov20-Nov21-Nov22-Nov23-Nov24-Nov25-Nov26-Nov27-Nov28-Nov29-Nov30-Nov
33
34 01DEC24 02DEC24 03DEC24 04DEC24 05DEC24 06DEC24 07DEC24 08DEC24 09DEC24 10DEC24 11DEC24 12DEC24 13DEC24 14DEC24 15DEC24 16DEC24 17DEC24 18DEC24 19DEC24 20DEC24 21DEC24 22DEC24 23DEC24 24DEC24 25DEC24 26DEC24 27DEC24 28DEC24 29DEC24 30DEC24 31DEC24
351-Dec2-Dec3-Dec4-Dec5-Dec6-Dec7-Dec8-Dec9-Dec10-Dec11-Dec12-Dec13-Dec14-Dec15-Dec16-Dec17-Dec18-Dec19-Dec20-Dec21-Dec22-Dec23-Dec24-Dec25-Dec26-Dec27-Dec28-Dec29-Dec30-Dec31-Dec
Date List

this is a list of dates with the above row the short hand used in a report. i am trying to find an efficient way to change them all over at the start of the year so I don't have to change them all cell by cell. the format of the short hand is digits 1 and 2 are the day 3, 4 and 5 are for the month and 6 and 7 correspond with the year. the flash fill function doesn't work for this since the first 2 digits would need to be the ones that counted up not the last 2. any suggestions would be appreciated
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Does this work for you?
Paste the formula:
Excel Formula:
=LET(y,2024,m,INT((ROW()-1)/3)+1,l,MOD(ROW(),3),d,DATE(y,m,COLUMN()),em,DAY(EOMONTH(d,0)),IF(l>0,IF(MONTH(d)=m,d,""),""))
into cell A1 and copy across to column AE and down to row 35.
Is having the month name in proper case a problem. e.g. 19Jun2024
Do you want the cells with dates to behave as dates or as text?

The first Conditional Format should be ddmmmyy and the second dd-mmm.

Cell Formulas
RangeFormula
A1:H11A1=LET(y,2024,m,INT((ROW()-1)/3)+1,l,MOD(ROW(),3),d,DATE(y,m,COLUMN()),em,DAY(EOMONTH(d,0)),IF(l>0,IF(MONTH(d)=m,d,""),""))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:AE36Expression=MOD(ROW(),3)=1textNO
A1:AE36Expression=MOD(ROW(),3)=2textNO
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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