Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I want to be able to calculate a figure based on the no. of weeks between a range of dates. eg. Records: Date From Date To Amount 3/11/03 17/11/03 120 18/11/03 7/12/03 130 8/12/03 - 150 If the date to field is blank then today's date is to be used At the moment I have the following: startdate = "24/11/2003" Set fromsheet = ActiveSheet Receipts = fromsheet.Cells(6, 3) wks = DateDiff("ww", startdate, Now) bal = Receipts - (wks * 120) This works fine if the amount is always 120 and the start date is always 24/11/2003. How can I change it so that bal = the addition of No. of weeks between each date in the table * the applicable amount? The # of records will always be increasing - somehow I need to be able to calculate each record separately Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculate age | Excel Discussion (Misc queries) | |||
calculate time does not calculate | Excel Discussion (Misc queries) | |||
How do I calculate? | Excel Discussion (Misc queries) | |||
Calculate | Excel Discussion (Misc queries) | |||
Macro that hide or unhide and not calculate or calculate | Excel Programming |