auto date filler

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
388
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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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)

DatesDay Name
09/09/2015​
Wednesday
12/09/2015​
Saturday
16/09/2015​
Wednesday
19/09/2015​
Saturday
23/09/2015​
Wednesday
26/09/2015​
Saturday
30/09/2015​
Wednesday
03/10/2015​
Saturday
07/10/2015​
Wednesday
10/10/2015​
Saturday
14/10/2015​
Wednesday
17/10/2015​
Saturday
21/10/2015​
Wednesday
24/10/2015​
Saturday
28/10/2015​
Wednesday
31/10/2015​
Saturday
04/11/2015​
Wednesday
and so on...
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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