Excel Get dates to increment by a day in copying down

21/07/2007
21/07/2008

In copying the first cell  above I wanted the second cell to be a day after but instead it is a year after. How can I
set things up so that when I drag the little cross that appears at the corner of the cell it increments by a day?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Glenn RayExcel VBA DeveloperCommented:
1) Change the cell format of the first cell to
dd/mm/yyyy

using the Format Cells dialog (shortcut: [Ctrl]+[1])
custom format and autofill
 2) Select the cell and click and drag the small cross/square down.

 Excel needs to know that the date format is not the regional default (mm/dd/yyyy) in order to do this copy-down-fill process properly.

 Regards,
 -Glenn
0
duncanb7Commented:
Select the date on cell format to
*14/01/2001 or *xx/yy/zzzz

Drag the cell again

Duncan
0
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi. Thanks, but both don't work
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

duncanb7Commented:
just try at A2 cell so that can make day increment on the date
from a1 =21/07/2007

=a1+1 and drag cells

Ducan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
als315Commented:
Your system date parameters had to be set to DD/MM/YYYY, only in this case day could be added.
Try to change format of cell to Number. I think it will not be changed.
Try included sample
BkDate.xls
0
Glenn RayExcel VBA DeveloperCommented:
murbro,

If you change the format of cell A1 to
dd/mm/yyyy

then re-enter the date as
07/21/2007

the appearance will change to the European format and the drag-and-fill option will work.

I've attached a detailed workbook with various examples that will explain this.

-Glenn
EE-Q-28479857.xlsx
0
Rob HensonFinance AnalystCommented:
It has nothing to do with date format.

The reason why the 2007 is incrementing to 2008 is because the cell contains a text string rather than a date and Excel is only incrementing the last number part of the string.

Change the first value to a true date in your own locale format and then dragging will increment as required.

Alternatively, when a proper date, as Duncan says the formula =A1+1 where A1 contains the start date will add one day, drag this formula down as far as required will have same result as dragging date but when you need to change the date range just changing the start date will change the rest accordingly.

Thanks,
Rob H
0
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks for the help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.