PC Review


Reply
Thread Tools Rate Thread

Automatic rolling months for forecast sheet

 
 
=?Utf-8?B?QW5ndXM=?=
Guest
Posts: n/a
 
      30th May 2007
I have to make a sales forecast sheet with rolling months, so that when sales
type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...

However, i am not sure will the salesman type "Aug-07" or "August-07" or
08012007" at A1...

Besides, i want the month (and the rolling months) a REAL DATE format
because i will copy it to Access database for statistic purpose.

How to make this happen, please help.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      30th May 2007
If it is to be a real date, then it must be a specific day in the month. If
the user enters just the month and year, then it will default to the 1st day
of the month.

in A2 put =if(A1<>"",DateSerial(year(a1),Month(A1)+1,1),"")

and format the cell in the date format you want to see. then drag fill down
the column.

--
Regards,
Tom Ogilvy


"Angus" wrote:

> I have to make a sales forecast sheet with rolling months, so that when sales
> type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...
>
> However, i am not sure will the salesman type "Aug-07" or "August-07" or
> 08012007" at A1...
>
> Besides, i want the month (and the rolling months) a REAL DATE format
> because i will copy it to Access database for statistic purpose.
>
> How to make this happen, please help.

 
Reply With Quote
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      30th May 2007
Did you mean Date instead of DateSerial?
--
HTH...

Jim Thomlinson


"Tom Ogilvy" wrote:

> If it is to be a real date, then it must be a specific day in the month. If
> the user enters just the month and year, then it will default to the 1st day
> of the month.
>
> in A2 put =if(A1<>"",DateSerial(year(a1),Month(A1)+1,1),"")
>
> and format the cell in the date format you want to see. then drag fill down
> the column.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Angus" wrote:
>
> > I have to make a sales forecast sheet with rolling months, so that when sales
> > type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...
> >
> > However, i am not sure will the salesman type "Aug-07" or "August-07" or
> > 08012007" at A1...
> >
> > Besides, i want the month (and the rolling months) a REAL DATE format
> > because i will copy it to Access database for statistic purpose.
> >
> > How to make this happen, please help.

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      30th May 2007
Why yes I did. DateSerial would be the VBA equivalent. So to the OP,
replace DateSerial with Date in the formula.

Thanks for the catch.

--
Regards,
Tom Ogilvy


"Jim Thomlinson" wrote:

> Did you mean Date instead of DateSerial?
> --
> HTH...
>
> Jim Thomlinson
>
>
> "Tom Ogilvy" wrote:
>
> > If it is to be a real date, then it must be a specific day in the month. If
> > the user enters just the month and year, then it will default to the 1st day
> > of the month.
> >
> > in A2 put =if(A1<>"",DateSerial(year(a1),Month(A1)+1,1),"")
> >
> > and format the cell in the date format you want to see. then drag fill down
> > the column.
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> >
> > "Angus" wrote:
> >
> > > I have to make a sales forecast sheet with rolling months, so that when sales
> > > type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...
> > >
> > > However, i am not sure will the salesman type "Aug-07" or "August-07" or
> > > 08012007" at A1...
> > >
> > > Besides, i want the month (and the rolling months) a REAL DATE format
> > > because i will copy it to Access database for statistic purpose.
> > >
> > > How to make this happen, please help.

 
Reply With Quote
 
=?Utf-8?B?QW5ndXM=?=
Guest
Posts: n/a
 
      31st May 2007
Thanks both of you experts, it works now

"Tom Ogilvy" wrote:

> Why yes I did. DateSerial would be the VBA equivalent. So to the OP,
> replace DateSerial with Date in the formula.
>
> Thanks for the catch.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Jim Thomlinson" wrote:
>
> > Did you mean Date instead of DateSerial?
> > --
> > HTH...
> >
> > Jim Thomlinson
> >
> >
> > "Tom Ogilvy" wrote:
> >
> > > If it is to be a real date, then it must be a specific day in the month. If
> > > the user enters just the month and year, then it will default to the 1st day
> > > of the month.
> > >
> > > in A2 put =if(A1<>"",DateSerial(year(a1),Month(A1)+1,1),"")
> > >
> > > and format the cell in the date format you want to see. then drag fill down
> > > the column.
> > >
> > > --
> > > Regards,
> > > Tom Ogilvy
> > >
> > >
> > > "Angus" wrote:
> > >
> > > > I have to make a sales forecast sheet with rolling months, so that when sales
> > > > type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...
> > > >
> > > > However, i am not sure will the salesman type "Aug-07" or "August-07" or
> > > > 08012007" at A1...
> > > >
> > > > Besides, i want the month (and the rolling months) a REAL DATE format
> > > > because i will copy it to Access database for statistic purpose.
> > > >
> > > > How to make this happen, please help.

 
Reply With Quote
 
=?Utf-8?B?QW5ndXM=?=
Guest
Posts: n/a
 
      31st May 2007
Thanks for your reply.

But as we know that in excel Sept 1, 2007 means 39326, it is not a real date
format. I need to copy that to access database and hopefully in a real date
format (and need to retrieve data from database to excel later for
reporting). How to make it?

"Tom Ogilvy" wrote:

> Why yes I did. DateSerial would be the VBA equivalent. So to the OP,
> replace DateSerial with Date in the formula.
>
> Thanks for the catch.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Jim Thomlinson" wrote:
>
> > Did you mean Date instead of DateSerial?
> > --
> > HTH...
> >
> > Jim Thomlinson
> >
> >
> > "Tom Ogilvy" wrote:
> >
> > > If it is to be a real date, then it must be a specific day in the month. If
> > > the user enters just the month and year, then it will default to the 1st day
> > > of the month.
> > >
> > > in A2 put =if(A1<>"",DateSerial(year(a1),Month(A1)+1,1),"")
> > >
> > > and format the cell in the date format you want to see. then drag fill down
> > > the column.
> > >
> > > --
> > > Regards,
> > > Tom Ogilvy
> > >
> > >
> > > "Angus" wrote:
> > >
> > > > I have to make a sales forecast sheet with rolling months, so that when sales
> > > > type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...
> > > >
> > > > However, i am not sure will the salesman type "Aug-07" or "August-07" or
> > > > 08012007" at A1...
> > > >
> > > > Besides, i want the month (and the rolling months) a REAL DATE format
> > > > because i will copy it to Access database for statistic purpose.
> > > >
> > > > How to make this happen, please help.

 
Reply With Quote
 
=?Utf-8?B?QW5ndXM=?=
Guest
Posts: n/a
 
      7th Jun 2007
Both experts,

The rolling months work, but when I update to Access database, the value is
empty. Following is my code:

.AddNew
.Fields("Order_month") = Trim(Range("J3").Value)
.Update

I try to replace with .Fields("Order_month") = Trim(Range("J3").Text) but
doesn't work. Other cells update properly to database. Thanks to help.

"Tom Ogilvy" wrote:

> Why yes I did. DateSerial would be the VBA equivalent. So to the OP,
> replace DateSerial with Date in the formula.
>
> Thanks for the catch.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Jim Thomlinson" wrote:
>
> > Did you mean Date instead of DateSerial?
> > --
> > HTH...
> >
> > Jim Thomlinson
> >
> >
> > "Tom Ogilvy" wrote:
> >
> > > If it is to be a real date, then it must be a specific day in the month. If
> > > the user enters just the month and year, then it will default to the 1st day
> > > of the month.
> > >
> > > in A2 put =if(A1<>"",DateSerial(year(a1),Month(A1)+1,1),"")
> > >
> > > and format the cell in the date format you want to see. then drag fill down
> > > the column.
> > >
> > > --
> > > Regards,
> > > Tom Ogilvy
> > >
> > >
> > > "Angus" wrote:
> > >
> > > > I have to make a sales forecast sheet with rolling months, so that when sales
> > > > type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...
> > > >
> > > > However, i am not sure will the salesman type "Aug-07" or "August-07" or
> > > > 08012007" at A1...
> > > >
> > > > Besides, i want the month (and the rolling months) a REAL DATE format
> > > > because i will copy it to Access database for statistic purpose.
> > > >
> > > > How to make this happen, please help.

 
Reply With Quote
 
=?Utf-8?B?QW5ndXM=?=
Guest
Posts: n/a
 
      8th Jun 2007
Sorry, my mistake. The code is addressing to the wrong cell.

"Angus" wrote:

> Both experts,
>
> The rolling months work, but when I update to Access database, the value is
> empty. Following is my code:
>
> .AddNew
> .Fields("Order_month") = Trim(Range("J3").Value)
> .Update
>
> I try to replace with .Fields("Order_month") = Trim(Range("J3").Text) but
> doesn't work. Other cells update properly to database. Thanks to help.
>
> "Tom Ogilvy" wrote:
>
> > Why yes I did. DateSerial would be the VBA equivalent. So to the OP,
> > replace DateSerial with Date in the formula.
> >
> > Thanks for the catch.
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> >
> > "Jim Thomlinson" wrote:
> >
> > > Did you mean Date instead of DateSerial?
> > > --
> > > HTH...
> > >
> > > Jim Thomlinson
> > >
> > >
> > > "Tom Ogilvy" wrote:
> > >
> > > > If it is to be a real date, then it must be a specific day in the month. If
> > > > the user enters just the month and year, then it will default to the 1st day
> > > > of the month.
> > > >
> > > > in A2 put =if(A1<>"",DateSerial(year(a1),Month(A1)+1,1),"")
> > > >
> > > > and format the cell in the date format you want to see. then drag fill down
> > > > the column.
> > > >
> > > > --
> > > > Regards,
> > > > Tom Ogilvy
> > > >
> > > >
> > > > "Angus" wrote:
> > > >
> > > > > I have to make a sales forecast sheet with rolling months, so that when sales
> > > > > type "Aug-07" at A1, A2 becomes "Sep-07", and A3 becomes "Oct-07" and so on...
> > > > >
> > > > > However, i am not sure will the salesman type "Aug-07" or "August-07" or
> > > > > 08012007" at A1...
> > > > >
> > > > > Besides, i want the month (and the rolling months) a REAL DATE format
> > > > > because i will copy it to Access database for statistic purpose.
> > > > >
> > > > > How to make this happen, please help.

 
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
template of a rolling forecast for production? =?Utf-8?B?S0VI?= Microsoft Excel Worksheet Functions 2 18th May 2007 03:36 AM
Rolling Forecast =?Utf-8?B?TGR5Zmx5cg==?= Microsoft Excel Worksheet Functions 1 18th Apr 2006 08:53 PM
I look for templates to plan rolling forecast allocation =?Utf-8?B?TWFyY28=?= Microsoft Excel Misc 0 25th Jan 2006 11:08 AM
how do I forecast a 15% increase over 7 months? =?Utf-8?B?dnJvc2Vu?= Microsoft Excel Misc 1 24th Jun 2005 03:01 AM
Rolling forecast query help. VT2000 via AccessMonster.com Microsoft Access Queries 2 19th Apr 2005 03:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 PM.