Running Conditional Sum Based on Month

tps49

New Member
Joined
Oct 7, 2014
Messages
26
Hello all,

I'm trying to structure a running conditional sum based on a monthly cash flow stream. To clarify, picture three elements:

- A stream of twelve cash flows in one row, each one corresponding to a month
- A list of twelve months in another row
- A single cell that acts as a switch for the user to indicate which month they want the report to run

I want the formula to say, "Take whatever month the user inputs (this could be the name of the month, number corresponding to the month, etc.) and add the cash flows from all of the preceding months, including the input month, and display the result." For instance, if I put "6" or "June", I would want the total of the initial six cash flows to display.

What is the cleanest way to structure this formula? Please don't hesitate to let me know if there's anything I can clarify.

Thank you very much in advance for your help.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I've tried a couple of sumif and vlookup nested formulas, just can't figure out the right combo.
 
Upvote 0

Forum statistics

Threads
1,214,529
Messages
6,120,070
Members
448,943
Latest member
sharmarick

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
Back
Top