Auto populate date

Jayzon

New Member
Joined
Feb 17, 2013
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi
Is there a way to auto populate cells with a date based on the year entered in another.
In the frotpage sheet i enter 2021 in B6 and then i would like B6 in the January-2021 sheet to auto populate with the date 01-01-2021.
And based on B6 in the January-2021 sheet i would like B6 in February-2021 to auto populate with the date 01-02-2021.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Sounds like DATE will help

=DATE(year,month,day)

=DATE(B6,1,1) will be 01/01/21
I get an #NAME? error when using : =DATE(Frontpage!B6.1.1) i tried chaning commas to dots, cell is formatted as a date.
 
Upvote 0
What language version of Excel are you using

Also I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
=DATE(Frontpage!B6,1,1)?
Awesome, this actually worked from frontpage sheet to the January-2021 sheet, how do i then auto populate B6 in the february-2021 sheet with an added month 01-02-2021
 
Upvote 0
Just the same again with ,2,1
This is what worked from Frontpage to January : =DATO(Frontpage!B6;1;1) but when trying to do the next step with : =DATO(January-2021!B6;2;1) i get an #NAME? error and ' ' is added to 2021 so it ends up =DATO(January-'2021'!B6;2;1) still with the error.
 
Upvote 0
Just use

=DATE(Frontpage!B6,2,1)

If you use a date as the year you'll need

=DATE(YEAR(January-2021!B6),2,1)

Also, be careful, you need commas. Not semicolon or full stops in functions.
 
Upvote 0
Also, be careful, you need commas. Not semicolon or full stops in functions.
That depends on the local settings & language version. A lot of countries use semi-colons as separators in formulae
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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