downhillsheep
New Member
- Joined
- Jan 26, 2012
- Messages
- 3
Ok, I'm sure this is pretty easy to figure out but this has been bugging me for a while.
If you look at the list below, I have twelve months of data of various amounts. What I would like to do is to report ZERO for Jan as the amount if less than 0.5; report ZERO for Feb as the total of Jan and Feb is still less than 0.5. However, for Mar I'd like to report 0.7 as that is the total of Jan, Feb, and Mar and is over 0.5. For Apr I would like to report 1.2 as that amount is already higher than 0.5; May ZERO and Jun 1.3 and so on and so fourth
<colgroup><col><col span="11"></colgroup><tbody>
</tbody>
I have to do this for over 10k lines of data and would love an easier way of formulating it so I know what needs to be reported on any given month
Thank you so much for your help
If you look at the list below, I have twelve months of data of various amounts. What I would like to do is to report ZERO for Jan as the amount if less than 0.5; report ZERO for Feb as the total of Jan and Feb is still less than 0.5. However, for Mar I'd like to report 0.7 as that is the total of Jan, Feb, and Mar and is over 0.5. For Apr I would like to report 1.2 as that amount is already higher than 0.5; May ZERO and Jun 1.3 and so on and so fourth
Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sept | Oct | Nov | |
Data | 0.2 | 0.1 | 0.4 | 1.2 | 0.3 | 1 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 |
What I'd like to achieve | 0.0 | 0.0 | 0.7 | 1.2 | 0.0 | 1.3 | 0.0 | 0.0 | 0.0 | 0.0 | 1.0 |
<colgroup><col><col span="11"></colgroup><tbody>
</tbody>
I have to do this for over 10k lines of data and would love an easier way of formulating it so I know what needs to be reported on any given month
Thank you so much for your help