PC Review


Reply
Thread Tools Rate Thread

auto fill rows with months based on cell value

 
 
Drew
Guest
Posts: n/a
 
      31st Mar 2008
Hello All ...

I am building a basic contract tracker spreadsheet.

In one cell I enter the start date and another the number of months of the
contract.

Currently I manually enter the first month (formated Mar-08) in the first
row then manually drag-fill it down to fill the corresponding number of
months of contract.

Is there a way to have Excel 2007 automatically fill this column with the
months based on the value of start date and number of months?

Thank you.


 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      31st Mar 2008
Assuming A1 will house the # of months, eg: 3
and A2 contains your 1st-of-month date, eg: 1-Mar-2008, formatted as: mmm-yy
In A3:
=IF(ROWS($1:1)>A$1,"",DATE(YEAR(A$2),MONTH(A$2)+ROWS($1:1),1))
Copy A3 down to cover the max expected number in A1
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Drew" <(E-Mail Removed)> wrote in message
news:emN$(E-Mail Removed)...
> Hello All ...
>
> I am building a basic contract tracker spreadsheet.
>
> In one cell I enter the start date and another the number of months of the
> contract.
>
> Currently I manually enter the first month (formated Mar-08) in the first
> row then manually drag-fill it down to fill the corresponding number of
> months of contract.
>
> Is there a way to have Excel 2007 automatically fill this column with the
> months based on the value of start date and number of months?
>
> Thank you.
>



 
Reply With Quote
 
Drew
Guest
Posts: n/a
 
      31st Mar 2008
Max ... it works a treat thank you ... excepting if I insert 1/3/08 as start
date the first auto complete month reads Apl-08. I need it to be the same
month as the start date month.

"Max" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Assuming A1 will house the # of months, eg: 3
> and A2 contains your 1st-of-month date, eg: 1-Mar-2008, formatted as:
> mmm-yy
> In A3:
> =IF(ROWS($1:1)>A$1,"",DATE(YEAR(A$2),MONTH(A$2)+ROWS($1:1),1))
> Copy A3 down to cover the max expected number in A1
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> xdemechanik
> ---
> "Drew" <(E-Mail Removed)> wrote in message
> news:emN$(E-Mail Removed)...
>> Hello All ...
>>
>> I am building a basic contract tracker spreadsheet.
>>
>> In one cell I enter the start date and another the number of months of
>> the contract.
>>
>> Currently I manually enter the first month (formated Mar-08) in the first
>> row then manually drag-fill it down to fill the corresponding number of
>> months of contract.
>>
>> Is there a way to have Excel 2007 automatically fill this column with the
>> months based on the value of start date and number of months?
>>
>> Thank you.
>>

>
>



 
Reply With Quote
 
Drew
Guest
Posts: n/a
 
      31st Mar 2008
Max ... I worked it out ... changing the 1 at end of formula to '0'.

Thank you again very much.

"Drew" <(E-Mail Removed)> wrote in message
news:e%230a4$(E-Mail Removed)...
> Max ... it works a treat thank you ... excepting if I insert 1/3/08 as
> start date the first auto complete month reads Apl-08. I need it to be the
> same month as the start date month.
>
> "Max" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Assuming A1 will house the # of months, eg: 3
>> and A2 contains your 1st-of-month date, eg: 1-Mar-2008, formatted as:
>> mmm-yy
>> In A3:
>> =IF(ROWS($1:1)>A$1,"",DATE(YEAR(A$2),MONTH(A$2)+ROWS($1:1),1))
>> Copy A3 down to cover the max expected number in A1
>> --
>> Max
>> Singapore
>> http://savefile.com/projects/236895
>> xdemechanik
>> ---
>> "Drew" <(E-Mail Removed)> wrote in message
>> news:emN$(E-Mail Removed)...
>>> Hello All ...
>>>
>>> I am building a basic contract tracker spreadsheet.
>>>
>>> In one cell I enter the start date and another the number of months of
>>> the contract.
>>>
>>> Currently I manually enter the first month (formated Mar-08) in the
>>> first row then manually drag-fill it down to fill the corresponding
>>> number of months of contract.
>>>
>>> Is there a way to have Excel 2007 automatically fill this column with
>>> the months based on the value of start date and number of months?
>>>
>>> Thank you.
>>>

>>
>>

>
>



 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      31st Mar 2008
Adjust it a little
Use instead in A3, copied down:
=IF(ROWS($1:1)>A$1,"",DATE(YEAR(A$2),MONTH(A$2)+ROWS($1:1)-1,1))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Drew" <(E-Mail Removed)> wrote in message
news:e%230a4$(E-Mail Removed)...
> Max ... it works a treat thank you ... excepting if I insert 1/3/08 as
> start date the first auto complete month reads Apl-08. I need it to be the
> same month as the start date month.



 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      31st Mar 2008
No prob. I posted another way in reply.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Drew" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Max ... I worked it out ... changing the 1 at end of formula to '0'.
>
> Thank you again very much.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto fill text columns based on rows Cecilia Microsoft Excel Worksheet Functions 3 29th Mar 2010 10:51 PM
Auto Fill Cell Based on Data in a different cell JB Bates Microsoft Excel Misc 4 15th Oct 2009 04:17 PM
Auto fill cell based upon another cell value Shek5150 Microsoft Excel Misc 3 3rd Nov 2008 03:28 PM
Insert number of rows based on cell value, and fill Tara.Whitty@gmail.com Microsoft Excel Programming 1 8th Aug 2008 07:01 AM
Auto-fill cell based on adjacent cell information.. =?Utf-8?B?c2Fucw==?= Microsoft Excel Worksheet Functions 1 17th Oct 2005 11:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.