Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Inserting dates function

Hi,
I wanted to insert dates that would be repeated 3 times and then move to the
next day on the calendar, something like this:
02.02.09
02.02.09
02.02.09
02.03.09
02.03.09
02.03.09
Is there a function, that I would be able to drag over several rows?
Thank you in advance,
Arthur N
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default Inserting dates function

try this

in cell A1 put any date
and cell A2 put this formula and drag it down

=IF(COUNTIF($A$1:A1,A1)<=2,A1,A1+1)



ArthurN wrote:

Hi,
I wanted to insert dates that would be repeated 3 times and then move to the
next day on the calendar, something like this:
02.02.09
02.02.09
02.02.09
02.03.09
02.03.09
02.03.09
Is there a function, that I would be able to drag over several rows?
Thank you in advance,
Arthur N

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Inserting dates function

Assuming your start date is in A2, put this in A3 and copy down...

=IF(COUNTIF(A$2:A2,A2)<3,A2,A2+1)

If your start cell is something else, then change all the references above
to that cell's reference... but make sure the first reference is absolute
and the rest are relative (as I have done in the formula above).

--
Rick (MVP - Excel)


"ArthurN" wrote in message
...
Hi,
I wanted to insert dates that would be repeated 3 times and then move to
the
next day on the calendar, something like this:
02.02.09
02.02.09
02.02.09
02.03.09
02.03.09
02.03.09
Is there a function, that I would be able to drag over several rows?
Thank you in advance,
Arthur N


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Inserting dates function


All great formulas, but as that list continues, the number of
calculations being done keep growing. I have a simpler approach.

Just put the same date in the first 3 cells, then in the 4th cell, put:

=A2+1

Now grab that 4th cell and just copy it down. It will repeat the
three-set for you because that's what you did manually to start the
whole thing. Much less calculations needed for the same result.


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=48993

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Inserting dates function

LOL... I guess this was a case of my not being able to see the forest for
the trees. You are absolutely right... excellent solution.

--
Rick (MVP - Excel)


"JBeaucaire" wrote in message
...

All great formulas, but as that list continues, the number of
calculations being done keep growing. I have a simpler approach.

Just put the same date in the first 3 cells, then in the 4th cell, put:

=A2+1

Now grab that 4th cell and just copy it down. It will repeat the
three-set for you because that's what you did manually to start the
whole thing. Much less calculations needed for the same result.


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile:
http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=48993


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting Dates without years, please help!! Erich Excel Discussion (Misc queries) 2 June 20th 08 08:57 PM
Sorting dates and inserting rows Andy Excel Worksheet Functions 3 June 7th 08 03:12 PM
Inserting Dates JDay Excel Discussion (Misc queries) 2 June 2nd 06 01:30 PM
Inserting dates JDay Excel Discussion (Misc queries) 2 June 1st 06 01:40 PM
Inserting Dates JDay Excel Discussion (Misc queries) 2 May 31st 06 12:58 PM


All times are GMT +1. The time now is 04:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"