auto date filler

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
391
Office Version
  1. 365
Platform
  1. Windows
ive a workbook that the days never change

in A2 i have 10/09/15 (Saturday) and in A3 i have 09/09/15 (Wednesday)

in A4 i have 12/09/15 (Saturday) and in A4 i have 16/09/15 (Wednesday)

so on and so on

so instead of having to put in the date manually id like a formula to do this for me

can anyone help please

TIA
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
First:
in A2 i have 10/09/15 (Saturday) and in A3 i have 09/09/15 (Wednesday)
does not appear to be valid dates.
Second: Perhaps if you could give a scenario on how you arrived at the dates you entered on your sheets, we could better understand what you need.
 
Upvote 0
How about


Excel 2013/2016
AB
1
205/09/2015Saturday
309/09/2015Wednesday
412/09/2015Saturday
516/09/2015Wednesday
619/09/2015Saturday
723/09/2015Wednesday
826/09/2015Saturday
List
Cell Formulas
RangeFormula
A3=A2+3+MOD(ROW(),2)
 
Last edited:
Upvote 0
another way with PowerQuery

Code:
[SIZE=1]let
    Source = List.Dates(#date(2015, 09, 09), 365, #duration(1, 0, 0, 0)),
    DayName = Table.AddColumn(Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error), "Day Name", each Date.DayOfWeekName([Column1]), type text),
    TypeDate = Table.TransformColumnTypes(Table.RenameColumns(Table.SelectRows(DayName, each ([Day Name] = "Saturday" or [Day Name] = "Wednesday")),{{"Column1", "Dates"}}),{{"Dates", type date}})
in
    TypeDate[/SIZE]

in this case M-code generate 105 dates (Wednesday, Saturday)

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#70AD47]Dates[/td][td=bgcolor:#70AD47]Day Name[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
09/09/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
12/09/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
16/09/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
19/09/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
23/09/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
26/09/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
30/09/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
03/10/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
07/10/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
10/10/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
14/10/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
17/10/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
21/10/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
24/10/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
28/10/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
31/10/2015​
[/td][td]Saturday[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]
04/11/2015​
[/td][td=bgcolor:#E2EFDA]Wednesday[/td][/tr]
[/table]

and so on...
 
Upvote 0

Forum statistics

Threads
1,223,981
Messages
6,175,767
Members
452,668
Latest member
mrider123

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