LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to spread values between start and end date

I have got a spreadsheet which has start dates in column A, end dates in
column B, and the value to be spread between them in column C. The dates
have been converted to weeknumbers using weeknum. Across the top of the
spreadsheet I have spread the week numbers 1 - 104 ( 2 years
worth ).Illustrated below:

Start End Value Weeks: 1 2 3 4 5 6 7 8 9
10 11 12
2 5 6
0 0 0
4 7 8

What I need to do is look at column A and B, look across the spreadsheet to
the corresponding weeknumbers in row 1 and spread the value in column c
between them (inclusive of the weeks in columns a and b) as shown below. I
have done this using formulae in a much smaller spreadsheet, however when I
try to do the same in this one it just falls over.

Start End Value Weeks: 1 2 3 4 5 6 7 8 9
10 11 12
2 5 6 6 6 6 6
0 0 0
4 7 8 8 8 8
8

The spreadsheet has approx. 9000 rows of data, in some of the rows, there
are no dates in columns a and b and they just need to be skipped over.

Any help would be much appreciated,

Thanks,

Mark


 
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
Macro start and finish date from rows Marylou Excel Worksheet Functions 16 August 17th 09 02:58 PM
Calculating monthly start date with a start date Monique Excel Worksheet Functions 3 December 20th 08 09:50 AM
Determining an annual review date from an employee start date Phrank Excel Worksheet Functions 3 November 29th 07 06:37 AM
Macro to find matching date and copy values to another sheet Tiger Excel Discussion (Misc queries) 3 August 13th 07 01:45 PM
formatting date-time values in macro scw-tzg Excel Worksheet Functions 2 November 14th 05 09:21 PM


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

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"