Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Data Conversion (Weekly 2 Monthly) ???

This would work as a pivot table using an active time series... Create a
pivot table off of the data. Add the dates to the Left column and the amounts
to the main body. Right click on the dates and group them by month, quarter,
year or whatever. You will still have some difficulties with weeks that
stradle over months so if that is a problem you will have to expand your
weekly values to daily values. I would need to know a little more about
stradling the data over months based on a 7 day week or a 5 day work week.

"Dan Thompson" wrote:

Hi Everyone,
I am looking for a Excel Macro to convert Weekly Data into Monthly data.
I am able to do this by using the excel formulas. I have two data sets one
is weekly.
so for example ..

2-Jan-99 119.42
9-Jan-99 121.09
16-Jan-99 121.49
23-Jan-99 121.44
30-Jan-99 121.33
6-Feb-99 120.33
13-Feb-99 120.5
20-Feb-99 122.36
27-Feb-99 121.81

is there a macro that I could use to convert this data to monthly values by
averaging
all weekly values in jan and feb to give me 1 monthly value for Jan and 1
for Feb and so on for the entire data set. If this is posible could someone
please help me out with some Ideas. Also I want the finished monthly values
to apear in another column or sheet.

Any thoughts ??

Dan.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 125
Default Data Conversion (Weekly 2 Monthly) ???

Thanks Jim I appreciate the help, unfortunatly that is probably not going to
work for me, for a few reasons. 1) I don't know anything about pivot tables.
2) From your suggestions it sounds like I would have to repate that procedure
every time I need to convert weekly to monthly data, and ufortunatly I have
far far to much data litterly 1000's of data sets to convert from weekly to
monthly and although your suggestions were good it seems a little to laborous
to do it with pivot tables.

What I need is a macro that will write formuals into cells after doing some
checks on the weekly dates the formulas that the VBA macros would automaticly
write into the cells would be somthing like this


=IF(ISNUMBER(A5),AVERAGE(A1:A5),"") <---- Average of 5 weekly values in Jan
to

Give me 1 monthly Value in the cell

That contains this formula

But I Need VBA to Determin Where to start and stop with the "Average"
Formula otherwise I might be averaging Jan and part of Feb into one monthly
value for Jan.

Anyhow not sure if anyone can help but I appreciate your input anyway Jim.



"Jim Thomlinson" wrote:

This would work as a pivot table using an active time series... Create a
pivot table off of the data. Add the dates to the Left column and the amounts
to the main body. Right click on the dates and group them by month, quarter,
year or whatever. You will still have some difficulties with weeks that
stradle over months so if that is a problem you will have to expand your
weekly values to daily values. I would need to know a little more about
stradling the data over months based on a 7 day week or a 5 day work week.

"Dan Thompson" wrote:

Hi Everyone,
I am looking for a Excel Macro to convert Weekly Data into Monthly data.
I am able to do this by using the excel formulas. I have two data sets one
is weekly.
so for example ..

2-Jan-99 119.42
9-Jan-99 121.09
16-Jan-99 121.49
23-Jan-99 121.44
30-Jan-99 121.33
6-Feb-99 120.33
13-Feb-99 120.5
20-Feb-99 122.36
27-Feb-99 121.81

is there a macro that I could use to convert this data to monthly values by
averaging
all weekly values in jan and feb to give me 1 monthly value for Jan and 1
for Feb and so on for the entire data set. If this is posible could someone
please help me out with some Ideas. Also I want the finished monthly values
to apear in another column or sheet.

Any thoughts ??

Dan.

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
how to convert a weekly data series to monthly jhstone711 Excel Discussion (Misc queries) 1 February 2nd 09 08:50 PM
sales data how i can list weekly,monthly yearly etc..etc... Abdul Gaphoor Excel Worksheet Functions 1 May 1st 06 12:14 PM
Collecting weekly and monthly totals from daily data Kasper Excel Worksheet Functions 0 January 12th 06 08:02 PM
Converting Weekly Data into Monthly Averages Kaine Excel Worksheet Functions 7 February 27th 05 11:13 PM
Converting Weekly Data into Monthly Averages Kaine Excel Discussion (Misc queries) 2 February 25th 05 09:03 AM


All times are GMT +1. The time now is 12:04 AM.

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"