Тёмный

Excel - Best Way For Running Totals - Episode 2590 

MrExcel.com
Подписаться 158 тыс.
Просмотров 4,5 тыс.
50% 1

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@excelisfun
@excelisfun Год назад
I use that SUM function with ignoring text. I love that unsophisticated one lol
@JoseAntonioMorato
@JoseAntonioMorato Год назад
Dear Bill, With the new dynamic SCAN function it is much easier, and the result spills over: =SCAN(0,D5:D13,LAMBDA(x,y,x+y)) 🤗
@thepoolstatguy
@thepoolstatguy Год назад
yes i love this method.
@GeertDelmulle
@GeertDelmulle Год назад
Congrats, this one takes the cake, IMO. Max. points in my book. By far the fastest, and easy to explain, too. Doesn't work in Excel Tables, though.
@JoseAntonioMorato
@JoseAntonioMorato Год назад
@@GeertDelmulle If the table has a column headed "Value", in the "Total" column, simply enter the formula, and the result will pour into the entire column: =SUM( Table1[[#Headers],[ Value]]:[@Value] ) 🤗
@richardhay645
@richardhay645 Год назад
@Geert Delmulle I use SCAN when I can but my data sets are slmost always converted to Tables. Then I use the Header colon 1st data cell method that I mentioned in my separate earlier comment. (Which I believe is whst you were suggesting in your above comment)
@Excelambda
@Excelambda Год назад
Super interesting survey!!✌ Remembered, before having SCAN, how I did this, single cell, using MMULT -for running totals =LET(a,B2#,r,ROWS(a),s,SEQUENCE(r),MMULT(IF(s>=SEQUENCE(,r),TRANSPOSE(a),0),s^0)) -and even running "subtraction" 😉 =LET(a,B2#,r,ROWS(a),s,SEQUENCE(,r),TRANSPOSE(MMULT(s^0,IF(SEQUENCE(r)>=s,a,0)))) What is interesting with this is that because of its "squareness" mmult concept, excel runs out of resources for vectors larger than 7327 elements. Believe it or not, Excel largest square sequence that can "print" or calculate is only =SEQUENCE(7327,7327) Anyhow, SCAN is fast and easy with a single initial acumulator and an array, the challenge is to reset the initial value by row or by column for 2D super large arrays. Have a study on this one, one day will get published at the forum. Again, Super cool to test speeds of different methods. ✌🙏
@Excelambda
@Excelambda Год назад
😊For running totals, byarray , byrow or bycol (resets initial acumulator value by each row or by each col) found this lambda that I posted at the forum, thread ASCAN, back on Sep 30 2021😊: ASCAN(ar,[d]) d,omitted by array ; d,-1 by row ; d,1 by col =LAMBDA(a, [d], LET( y, IF(d = 1, TRANSPOSE(a), a), s, SCAN(0, y, LAMBDA(v, a, v + a)), x, s - IF(d, INDEX(s, , 1) - INDEX(y, , 1)), IF(d = 1, TRANSPOSE(x), x) ) )
@notesfromleisa-land
@notesfromleisa-land 6 месяцев назад
I use running totals in tables in excel as I typically need table structure with index column to analyze account activity. I use the Sum(header row in column:first value in column) from Jon at Excel Campus. This application works well for adding/deleting items in the table without bastardizing the runttl function. That said, I love the simplicity of what you demonstrated.
@ricos1497
@ricos1497 Год назад
Very interesting Bill, thanks. I'll just SCAN the comments for any differing suggestions.
@davidabuang
@davidabuang Год назад
I love the =SUM(E4,D5) tip! Simplicity is best! My biggest beef with this type of running total, though, is that inserting or deleting rows causes cell reference issues. To overcome that, I use a relative cell reference in Name Manager called CellAbove. Then my running total would be =CellAbove+D5, and my first row would be a hard keyed “opening balance” (when working with accounting data) to avoid the different formula. Now I should be able to just use =SUM(CellAbove,D5). Thanks!!!
@kleinboertjie
@kleinboertjie Год назад
Hi One more way with one formula adding cell above In the header cell, type 0 and change the custom formatting to display the header description in all the categories for positive values; negative values; zero values; text values. Then just add the value to the left to the value above
@drsteele4749
@drsteele4749 Год назад
This works well in a range, and it works especially well in an Excel Table (where the cells are structured references). E5 =N(OFFSET(E5,-1,))+D5
@excelisfun
@excelisfun Год назад
Fun and informative video, Mr Excel!!!!
@SyedMuzammilMahasanShahi
@SyedMuzammilMahasanShahi Год назад
Amazing. Thanks for the share.
@paulsingleton6071
@paulsingleton6071 Год назад
Thank you for your video Bill, very interesting. I like the Scan/Lambda combination although sometimes it does not suit your situation. For example, when producing the running total for sales for the month and you have 5 days to go the formula repeats the last value for the remaining cells. I had to resort to this: =SCAN(0,C8#,LAMBDA(a,b,IF(VALUE(OFFSET(b,-6,))
@realBkay
@realBkay Год назад
00:28 - Bill, I have never been annoyed by any of ur content.
@KO1967
@KO1967 Год назад
Thanks Bill. One additional point for consideration. I know you don't like tables but if this is being done inside a table (A1:B10) where A is number and B is running total the formula for column B = SUM (A2,B1) will break (and the user probably won't know it) if the user inserts a row in the the middle of the table (lets say new row = 5) because the formula in the new row will be correct (SUM(A5,B4) but row 6 will not adjust accordingly but instead will be SUM(A6,B4). To combat this I've moved to using the formula =SUM(A2,OFFSET(B2,-1,0)) which will still be accurate if a row is inserted in a table. It loses points on "explainable to someone else" criteria but better than breaking and still much faster than SUM(A$2:A2).
@notesfromleisa-land
@notesfromleisa-land 6 месяцев назад
You can also use the Sum(header row in column:first value in column) which I learned from Jon at Excel Campus. I use it frequently in "stuff" that I do in account analyses. I structure the data in PQ and add an index column to always restore the original order.
@nadermounir8228
@nadermounir8228 Год назад
Thank you Bill for this interesting Video
@richardhay645
@richardhay645 Год назад
In a Table (vitually all my data sets are in Tables) click on header, then insert a colon, then click on the cell below the header, then wrap the expsnding range in SUM (or SUMIFS, etc). Really fast to set up.
@henryg5735
@henryg5735 Год назад
Me too
@c.e.bingham2079
@c.e.bingham2079 Год назад
Very interesting analysis of which formula works faster. I often use the Mr. Excel way. However, I will consider going back to Bill kindergarten way. It just makes more sense even if my spreadsheets are relatively small by comparison of 100,000 rows.
@einoconsult5563
@einoconsult5563 Год назад
@Bill I do not have the add-in to calculate the speed, what if you wrap Carlo's formula in a LET statement =LET(a,INDEX($D$5:$D$13,1),SOMME(a:D5)), so that it will calculate the INDEX($D$5:$D$13,1) only once ?
@carlo_migliari81
@carlo_migliari81 Год назад
Thank you Mr. excel! I'm curious about the time that the SCAN solution posted by someone below may takes compared to the other methods
@kurtneubek3200
@kurtneubek3200 Год назад
This only refers to 2 cells and is easy to explain. Too slow? E5=N(E4)+D5
@MrXL
@MrXL Год назад
I like this one. The N() function will ignore the heading.
@davidjefferson6986
@davidjefferson6986 Год назад
Like a few others who have commented, I like SCAN, but suspect it would come second on your scoring system
@MrXL
@MrXL Год назад
I am very intrigued by the "Someone inserts a row in the middle" problem. I might need to change the scoring system.
@RambozoClown
@RambozoClown Год назад
But can you create a formula that takes over an hour to do 100,000 cells?
@BhavyaGupta
@BhavyaGupta Год назад
=SCAN(0,rng,LAMBDA(a,b,a+b))
@Ticky66MN
@Ticky66MN Год назад
Bill K's way won't work when we're sorting the data. Right?
@thepoolstatguy
@thepoolstatguy Год назад
Can you do one video showing the splll vs copying the formula😜
@brianspiller9075
@brianspiller9075 Год назад
Running totals in Pivot Table. The data exist in its own Table, not range. A pivot table or other reporting methods report on that data, not in that data!
@lcorcoran56
@lcorcoran56 Год назад
I’ve been working on formula yesterday to reset an Index number when the data changes in any of three columns =IF(AND(Q36=Q35,O36=O35,M36=M35),R35+1,1), I'm trying to get it to spill but it's getting the better of me.
@MrXL
@MrXL Год назад
I agree this will not spill. Could you enter it in R36 and copy down to the bottom of your data? That is working in my test here.
@lcorcoran56
@lcorcoran56 Год назад
Shout out to the MrExcel Forum Some one came up with this Formula =SCAN(0,SEQUENCE(ROWS(I36#)),LAMBDA(a,b,IF(b=1,1,IF(AND(INDEX(I36#,b,6)=INDEX(I36#,b-1,6),INDEX(I36#,b,4)=INDEX(I36#,b-1,4),INDEX(I36#,b,2)=INDEX(I36#,b-1,2)),a+1,1)))) my head hurts just looking at it.
@MrXL
@MrXL Год назад
@@lcorcoran56 Mine too.
Далее
Why Pro Excel Users Love SUMPRODUCT!
8:08
Просмотров 60 тыс.
TRENDNI BOMBASI💣🔥 LADA
00:28
Просмотров 781 тыс.
How Many Twins Can You Spot?
00:17
Просмотров 22 млн
I Built a SECRET Lamborghini Dealership!
33:02
Просмотров 12 млн
Use Index-Match in Excel like a pro
15:24
Просмотров 588
Running total in an Excel Table | Excel Off The Grid
11:14
How to add running totals in Excel: Three easy methods
10:09
The Excel Formula I Can’t Live Without
13:49
Просмотров 25 тыс.
You Won't Believe These Crazy PIVOT TABLE Hacks!
11:30
Просмотров 705 тыс.
TRENDNI BOMBASI💣🔥 LADA
00:28
Просмотров 781 тыс.