Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Cumulative sum, based on previous data

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

Jan Feb Mar Apr May Jun Jul
Data 0.2 0.1 0.4 1.2 0.3 1.0 0.2

What I'd 0.0 0.0 0.7 1.2 0.0 1.3 0.0 like to
achieve

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
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by downhillsheep View Post
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

Jan Feb Mar Apr May Jun Jul
Data 0.2 0.1 0.4 1.2 0.3 1.0 0.2

What I'd 0.0 0.0 0.7 1.2 0.0 1.3 0.0 like to
achieve

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
You say "so on and so forth", but your pattern here is not really clear.
Could you explain why May would be zero?

I think a larger sample of data and expected results would be helpful here too.
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
select and paste data based on creteria on previous cells Jerome[_6_] Excel Programming 2 June 3rd 10 04:37 PM
Based on data in previous column - sum of values in next column Beena K Excel Worksheet Functions 1 April 7th 09 07:23 PM
CF a Row based on previous row. gtslabs Excel Worksheet Functions 2 December 2nd 08 02:46 PM
Average based on the previous row Gary Excel Worksheet Functions 5 February 6th 07 02:47 PM
Searching for blank cell and populating based on previous data AZ Analog Excel Programming 1 October 30th 06 10:36 PM


All times are GMT +1. The time now is 10:30 PM.

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"