Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.functions
external usenet poster
 
Posts: 62
Default filling a column with consecutive months

I would like to have users enter a mm/yy in one cell and the
following 359 cells in the same column will be automatically
filled with the subsequent months. What is the formula to be used?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default filling a column with consecutive months

Hi John

Do you know exactly what cell the person will be entering data? If for
example they are entering dates in Cell A2, then this vba coding will
work. If not I am sure you can adjust to suit.

Sub Filldown()

Application.ScreenUpdating = False
Range("A2").AutoFill Destination:=Range("A2:A360")

End Sub


Take care

Marcus

John Smith wrote:
I would like to have users enter a mm/yy in one cell and the
following 359 cells in the same column will be automatically
filled with the subsequent months. What is the formula to be used?
Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default filling a column with consecutive months

Sorry, forgot to mention that I'd like to also increase the month.
Is there an easy way to do that? I tried to use the formula
"=R[-1]C + 30". That did not work.

marcus wrote:
Hi John

Do you know exactly what cell the person will be entering data? If for
example they are entering dates in Cell A2, then this vba coding will
work. If not I am sure you can adjust to suit.

Sub Filldown()

Application.ScreenUpdating = False
Range("A2").AutoFill Destination:=Range("A2:A360")

End Sub


Take care

Marcus

John Smith wrote:

I would like to have users enter a mm/yy in one cell and the
following 359 cells in the same column will be automatically
filled with the subsequent months. What is the formula to be used?
Thanks.



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
Best 3 Consecutive Months Desoto Excel Worksheet Functions 13 May 15th 10 12:31 AM
How do I pull data for consecutive months in an Excel spreadsheet Patti Ayala[_2_] Excel Worksheet Functions 2 July 1st 08 09:36 PM
Counting Consecutive Months in Top Third A.C.G.[_2_] Excel Worksheet Functions 1 March 7th 08 07:30 PM
Code for auto filling in Excel based on number of months, & start date Diane Sulton Excel Programming 1 March 1st 06 01:15 AM
i need to add consecutive months and keep the day the same for ea. Jason Excel Worksheet Functions 8 March 21st 05 08:18 PM


All times are GMT +1. The time now is 05:35 PM.

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

About Us

"It's about Microsoft Excel"