Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default alternate rows with date

hi community

how can i fill up alternate rows with a series of date that runs consecutively

example:

A B C D

1 01-May

2

3 02-May

4

5 03-May

can this sort of series fill possible?


thanks community

:)


--
oldLearner57
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default alternate rows with date


One way

Sub datesinaltrows()
mc = "d"
sd = InputBox("Enter start date, ie 7/4")
nd = InputBox("Enter number of days")
Cells(1, mc) = sd
For i = 2 To nd
Cells(i * 2 - 1, mc) = Cells(1, mc) + i - 1
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"oldLearner57" wrote in message
...
hi community

how can i fill up alternate rows with a series of date that runs
consecutively

example:

A B C D

1 01-May

2

3 02-May

4

5 03-May

can this sort of series fill possible?


thanks community

:)


--
oldLearner57


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 772
Default alternate rows with date

The fastest way is to insert a column, then put in the following formula and
copy it down.
=IF(B2="",B1,B2)

We are just say that if the cell is blank, use the value in the cell above
it, if not then leave it alone.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"oldLearner57" wrote:

hi community

how can i fill up alternate rows with a series of date that runs consecutively

example:

A B C D

1 01-May

2

3 02-May

4

5 03-May

can this sort of series fill possible?


thanks community

:)


--
oldLearner57

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default alternate rows with date

hi
another way.
enter date 5/1/08in A1
enter next date 5/2/08 in A3
high like range A1:A4
place curson over lower right corner of selected area until curser turn into
a small black cross. click and hold. drag down as far as you want.

regards
FSt1

"oldLearner57" wrote:

hi community

how can i fill up alternate rows with a series of date that runs consecutively

example:

A B C D

1 01-May

2

3 02-May

4

5 03-May

can this sort of series fill possible?


thanks community

:)


--
oldLearner57

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default alternate rows with date

10s!..it was wonderful, so easy yet so difficult if not enlighted :)

10s community
--
oldLearner57


"FSt1" wrote:

hi
another way.
enter date 5/1/08in A1
enter next date 5/2/08 in A3
high like range A1:A4
place curson over lower right corner of selected area until curser turn into
a small black cross. click and hold. drag down as far as you want.

regards
FSt1

"oldLearner57" wrote:

hi community

how can i fill up alternate rows with a series of date that runs consecutively

example:

A B C D

1 01-May

2

3 02-May

4

5 03-May

can this sort of series fill possible?


thanks community

:)


--
oldLearner57



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default alternate rows with date

that seems not to work on my Excel 2003
;-(
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default alternate rows with date

10s! John Bundy, was interesting to know abt the formula
however
along the alternate row that was supposed to be blank, it shows some data
like 0-Jan

example:

A B C

1 01-May

2 0-Jan

3 02-May

4 0-Jan

able to use the formula, =if(b2="",b1,b2)
how can i remove the 0-Jan to have the alternate row with a Blank?

thanks for your great help!!

thanks community as well
--
oldLearner57


"John Bundy" wrote:

The fastest way is to insert a column, then put in the following formula and
copy it down.
=IF(B2="",B1,B2)

We are just say that if the cell is blank, use the value in the cell above
it, if not then leave it alone.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"oldLearner57" wrote:

hi community

how can i fill up alternate rows with a series of date that runs consecutively

example:

A B C D

1 01-May

2

3 02-May

4

5 03-May

can this sort of series fill possible?


thanks community

:)


--
oldLearner57

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default alternate rows with date

hi Don Guillet, much appreciated for your assistance

thanks You

thanks community as well

:)
--
oldLearner57


"Don Guillett" wrote:


One way

Sub datesinaltrows()
mc = "d"
sd = InputBox("Enter start date, ie 7/4")
nd = InputBox("Enter number of days")
Cells(1, mc) = sd
For i = 2 To nd
Cells(i * 2 - 1, mc) = Cells(1, mc) + i - 1
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"oldLearner57" wrote in message
...
hi community

how can i fill up alternate rows with a series of date that runs
consecutively

example:

A B C D

1 01-May

2

3 02-May

4

5 03-May

can this sort of series fill possible?


thanks community

:)


--
oldLearner57



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default alternate rows with date

works in mine. apparently in oldLearner57 too.

regards
FSt1

"Jarek Kujawa" wrote:

that seems not to work on my Excel 2003
;-(

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default alternate rows with date

must have missed sth.

sorry


  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default alternate rows with date

Jarek

Note to select A1:A4 so's you have a blank cell below both dates when you start
to drag.


Gord

On Mon, 14 Jul 2008 06:21:30 -0700 (PDT), Jarek Kujawa wrote:

that seems not to work on my Excel 2003
;-(


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
Color alternate rows when after hiding selected rows Monk[_2_] Excel Worksheet Functions 6 June 7th 08 01:36 AM
sum alternate rows anand Excel Worksheet Functions 4 June 19th 07 07:59 AM
How to calculate the sum of the alternate rows? Sathish Excel Worksheet Functions 2 June 22nd 06 07:49 AM
Add alternate rows Teri Excel Worksheet Functions 6 March 16th 05 10:15 PM
How to sum-up alternate rows ? lolex Excel Worksheet Functions 3 November 5th 04 11:57 AM


All times are GMT +1. The time now is 09:05 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"