Cumulative Total (Before, During, After)

Datatellsall2

New Member
Joined
Jul 17, 2018
Messages
23
Hello,

I'm trying to calculate the cumulative sum of time value (before, during, and after day of call) - see the last 3 columns. I've filled in the correct amounts below as a reference for the last 3 columns. What would be the best formula to calculate this? Essentially, my formula needs to look at any information prior to the day of call ("yes" or "no"), as well as post "yes". Please note that I must take into consideration the Unique Identifier, as I have roughly 400 different ones in my full data set.

Unique Identifier
DateTime ValueDay of Call?Cumulative Sum of Time Value (Before Call)Cumulative Sum of Time Value (Day of Call)Cumulative Sum of Time Value (After Call)
1008/1/20183No300
1008/2/20183No600
1008/3/20183No900
1008/4/20182Yes020
1008/5/20184No004
1008/6/20186No0010

<tbody>
</tbody>


Thanks in advance,
M
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,255
Messages
5,769,061
Members
425,515
Latest member
baltusf

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top