Solved

Excel Get dates to increment by a day in copying down

Posted on 2014-07-20
8
255 Views
Last Modified: 2014-07-24
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?
0
Comment
Question by:murbro
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40207544
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
 
LVL 13

Expert Comment

by:duncanb7
ID: 40207549
Select the date on cell format to
*14/01/2001 or *xx/yy/zzzz

Drag the cell again

Duncan
0
 

Author Comment

by:murbro
ID: 40207563
Hi. Thanks, but both don't work
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 13

Accepted Solution

by:
duncanb7 earned 125 total points
ID: 40207565
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
 
LVL 40

Assisted Solution

by:als315
als315 earned 125 total points
ID: 40207583
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
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 125 total points
ID: 40208039
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
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 125 total points
ID: 40214005
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
 

Author Closing Comment

by:murbro
ID: 40217715
Thanks for the help
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question