Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I am looking for a vba routine
I have a time series like this: 1995, -.05 1996, -2.1 1997, 3.6 1998, 4.3 1999, 0.7 2000, -0.08 2001, -0.1 and I would like to sum just the positive and negative value separately in this way 1995, -2.15 1996, 8.6 1999, -0.18 i.e the sum of negative or positive values should be associated to the last date of the previous growth or drop. I don't know in advance the length of period of drop and growth Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I, for one, don't understand what you want. A better example.
-- Don Guillett SalesAid Software "bora" wrote in message ps.com... Hi, I am looking for a vba routine I have a time series like this: 1995, -.05 1996, -2.1 1997, 3.6 1998, 4.3 1999, 0.7 2000, -0.08 2001, -0.1 and I would like to sum just the positive and negative value separately in this way 1995, -2.15 1996, 8.6 1999, -0.18 i.e the sum of negative or positive values should be associated to the last date of the previous growth or drop. I don't know in advance the length of period of drop and growth Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
in the column A I have the year
in the column B I have the annual (growth or decrease) rate of output in 1995 I would have the sum of B1+B2 because it is the first data in 1996 that is the las year of drop, I would like the sum of B3+B4+B5 in 1999 that is the las year of growth I would like the sum ob B7+B7 the length of drop or growth is unknown because in another country i could have: 1995, -.05 1996, 3.1 1997, 4.3 1998, 1.1 1999, 0.7 2000, -1.08 2001, -2.1 and then 1995, -.05 (because I don't have previous years) 1995, 9.3 (problem) 1999,-2.18 In order to avoid confusion It is better to me to have two routines separated for negative and positive values respectively Don Guillett wrote: I, for one, don't understand what you want. A better example. -- Don Guillett SalesAid Software "bora" wrote in message ps.com... Hi, I am looking for a vba routine I have a time series like this: 1995, -.05 1996, -2.1 1997, 3.6 1998, 4.3 1999, 0.7 2000, -0.08 2001, -0.1 and I would like to sum just the positive and negative value separately in this way 1995, -2.15 1996, 8.6 1999, -0.18 i.e the sum of negative or positive values should be associated to the last date of the previous growth or drop. I don't know in advance the length of period of drop and growth Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing positive values to negative | New Users to Excel | |||
sum positive and negative values separately | Excel Programming | |||
Formula to make Negative Values Positive & Positive Values Negative? | Excel Discussion (Misc queries) | |||
... Count, <<< Positive Values minus Negative Values >>> ... | Excel Worksheet Functions | |||
switching values from positive to negative | Excel Worksheet Functions |