From the course: Excel: Financial Functions in Depth
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Building a cumulative sum with SCAN - Microsoft Excel Tutorial
From the course: Excel: Financial Functions in Depth
Building a cumulative sum with SCAN
- [Instructor] If you had a list of sales like this and wanted to work out how much we've sold cumulatively each month, there are a couple of different ways of doing this, and some are better than others. Firstly, you could just look at the first month, and then you could look at the previous one plus the current month and copy that down. Now that would work, but you have inconsistent formulas, which is generally not best practice, but hey, that will work. The other way of doing it would be to do a sum formula, put in a colon, and then just go back into the formula, and use your F4 shortcut or just type in the dollar signs. If I drag that down, you can see that it's going to sum it cumulatively as the months go on. Now there is a new type of function. It's again, a Lambda function, which you can use together with dynamic formulas. So to do this, it's called a scan, and you need to put in your initial value, which in this case is zero, and the array is going to be the sales, and then…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
STOCKHISTORY: Get historical stock prices3m 40s
-
(Locked)
Live stock prices with Stocks data types2m 51s
-
(Locked)
Calculate exchange rates with the Currency data type4m 3s
-
(Locked)
FIELDVALUE: Get field data3m 7s
-
(Locked)
STOCKHISTORY with data types2m 13s
-
(Locked)
Charting STOCKHISTORY with data types6m 1s
-
(Locked)
Introduction to LAMBDA functions with BYCOL and BYROW3m 9s
-
(Locked)
Using BYCOL with multiple ranges1m 30s
-
(Locked)
Applying formatting to dynamic ranges2m
-
(Locked)
Building a cumulative sum with SCAN2m 24s
-
-
-