How to SUM Totals At Bottom of a Column Dynamically - Excel VBA Is Fun!

How to SUM Totals At Bottom of a Column Dynamically - Excel VBA Is Fun!

ExcelVbaIsFun

10 лет назад

90,285 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Monica Pavlovich
Monica Pavlovich - 21.06.2023 21:31

This was super helpful! Do you have a video explaining how to do this same VBA sum concept except with summing a row horizontally when the last cell in that row is changing as data is added/removed?

Ответить
Her Joyful Journey
Her Joyful Journey - 09.06.2023 11:12

Thanks for the help

Ответить
J M TIWARI
J M TIWARI - 29.05.2023 20:46

Good one. Thanks 👍

Ответить
Pat Carr
Pat Carr - 05.05.2023 00:10

this is confusing. seems you would know how to do it before making the video?

Ответить
Steve
Steve - 08.10.2022 17:46

Thankyou^^

Ответить
Sami Awad
Sami Awad - 23.06.2022 14:45

Hello can i have the code please

Ответить
Dylan Kessler
Dylan Kessler - 01.04.2022 21:14

Thank you, you explained it very well, and I love the simplicity. I was stuck trying to combine multiple for loops, but this made perfect sense, and it actually worked! Thanks again!

Ответить
Alex
Alex - 24.03.2022 08:08

I'm trying to figure out how to design a model with a message box that requests a positive integer input and then populates a list of all the odd integers that occur before that positive integer entered and also provides the sum of all those negative integers at the bottom of the data set. So for example, if the user enters 8, then there will be a range of negative integers including 1, 3, 5, and 7 and a resulting sum of 16. How can this be achieved?

Ответить
Jean Cardona
Jean Cardona - 13.02.2022 01:46

You just saved me. Your video is clear, to the point, and actually really interesting.
I hope you have a great day.
All the best.

Ответить
sonam mishra
sonam mishra - 09.11.2021 18:22

Thanks a lot it help me to find the solutions

Ответить
Growth Associates
Growth Associates - 06.10.2021 00:35

i m facing an error in the first line of code runtime error 9 subscript out of range

Ответить
AJ LifeSolutions
AJ LifeSolutions - 30.09.2021 16:43

Definitely a Geek! 🤦‍♂️ Way above what I needed..

Ответить
Kirana Rana
Kirana Rana - 20.04.2021 07:32

Could you please add the vba
The link does’nt work

Ответить
Issam Alkhesho
Issam Alkhesho - 17.03.2021 05:58

Hello , I am wondering if you can help me with the following task: I have two work books, the first one is to create invoice with customer information and purchasing details , the second workbook is to save dynamically the data including the invoice number , date, total price ..etc. extracted form the first workbook . At the end of the day I am going to save both workbooks and shut down the computer . what I would like to have the next day is when I open the first workbook , I want to open the second workbook using a command button on the first workbook , also I want to be able to get the last invoice number saved in the second workbook to be transferred to the first workbook with adding one to it . the invoice numbers are saved in column A2 :A in the second workbook. the invoice cell number is L11 in the first workbook .
I have created a command button on the first workbook to open the second workbook , that is successful , but I am not able to write the correct VBA code to transfer the last row cell value of column A from second workbook to the first workbook .
Can you please help me ?
thanks

Ответить
mauro vincenzo
mauro vincenzo - 02.01.2021 23:30

hi, I would need such a thing with sumif. i have a list with duplicates and i need to group. Hope you can help me. thanks

Ответить
محمد أبو عبدو
محمد أبو عبدو - 02.05.2020 17:19

Thank you so mutch

Ответить
sharifa shaikh
sharifa shaikh - 08.03.2020 16:59

Hello, This was awesome. Exactly what i needed. Your work is absolute marvel!!!! Could you please assist on how i can do this for multiple columns without repeating the codes each time. Thanks!

Ответить
Peggywong4466 Peggy
Peggywong4466 Peggy - 18.11.2019 12:24

how about i do have a first run for the consolidate for all worksheets into one worksheet. how am i going to sums everythings in my active worksheets

Ответить
Niva Donga
Niva Donga - 09.09.2019 12:23

I am getting application defined or object-defined error on using this same code in the first line. Kindly help

Ответить
fun zone family
fun zone family - 24.05.2019 14:25

need sumif sumifs countif countifs and pivot using vba please help me

Ответить
Salim S
Salim S - 06.04.2019 23:09

That is awesome. Thank you. 👍

Ответить
Chester Mujibelo
Chester Mujibelo - 08.02.2019 15:09

Well explained thanks

Ответить
codeWithHyder
codeWithHyder - 20.01.2019 08:36

dear, you must clear your concepts first before uploading the videos

Ответить
mohammed elsayed
mohammed elsayed - 10.01.2019 12:05

From Egypt
Thank you very very much

Ответить
Nancy Dandridge
Nancy Dandridge - 31.07.2018 20:06

this helped a lot. thanks

Ответить
Schleck R
Schleck R - 03.05.2018 22:31

Thanks for being very detailed in every move you made

Ответить
Baseline Legacy
Baseline Legacy - 27.02.2018 04:40

part of your code is chopped off,..

Ответить
Francois-Xavier R.
Francois-Xavier R. - 14.02.2018 22:04

congrats, great video

Ответить
khalid alkubaty
khalid alkubaty - 30.01.2018 09:23

Thank you very much but if I want to sum 2 columns like this, what will the code be ?

Ответить
CK Foong Property
CK Foong Property - 12.09.2017 17:55

It cant work for below codes. Anyone can help?
Sub ltd1()
lastrow = ActiveSheet.Cells(Rows.Count, 12).End(xlUp).Row
ActiveSheet.Range("l" & lastrow + 1) = Application.WorksheetFunction.Sum(ActiveSheet.Range("l2:l" & lastrow).Sum))
End Sub

Ответить
Luis Angel Gutierrez
Luis Angel Gutierrez - 19.01.2017 04:10

Hey Buddy!! Thanks!! you do not know how difficult were to found a easy solution to the issue with the variable ranges, Thanks a lot.

Ответить
Bob Granzow
Bob Granzow - 02.12.2016 06:08

Thanks, helped a lot.

Ответить
Golds
Golds - 17.08.2016 04:53

Hi Daniel, what if I have a dynamic filter and I wanted to just get the sum of the filtered dataset? Please advise :) Thanks

Ответить
Michael Dingee
Michael Dingee - 26.06.2015 14:11

Thanks for the tip. I have another question, using the same method  how would you do a subtotal after row change. Example say the first 10 rows in Column A say Mike, there would be a total after that in column B , then the next 7 say Dan this would total, etc.

Thanks Again for the tips

Ответить
Alex C
Alex C - 15.02.2014 01:57

Thanks dude. Your Dropbox files are cool too. I used "SUBTOTAL in Bottom Cell using Excel VBA.xlsm". It's exactly what i needed.

Ответить
ALGOR1DDUM
ALGOR1DDUM - 18.09.2013 18:31

i am having trouble with a very similar problem but mine is different in that i need to get the average of different size datasets in the same column so just like above the first dataset is so many rows long and you got the total of that now what i need to do i just insert a blank line and enter values for the next dataset and then get the average of that new dataset EXAMPLE DATASET1 4 5 5 5 6 6 AVERAGE ????? DATASET2 1 1 2 3 AVERAGE ???? ANY IDEAS ?

Ответить
JPN AUTO TRADE
JPN AUTO TRADE - 18.09.2013 12:39

Real nice, thank you, may I ask for an example if there are blank cells in Column B please. Or possibly zeros in the empty cells but the cells with zeros do not have visible text (numbers), maybe something like that if empty cells are not possible. Thank you. Duane

Ответить
ExcelVbaIsFun
ExcelVbaIsFun - 18.09.2013 06:27

You may be right. I generally do that when there are super lots of redundancies. Thanks for your comments, guru dude. Dan

Ответить
guru dude
guru dude - 18.09.2013 03:58

looks good... you might want to try using "with" and "end with" to clean up the code a-bit ;)

Ответить
ExcelVbaIsFun
ExcelVbaIsFun - 17.09.2013 04:57

Thank you sobolev!

Ответить
kevin
kevin - 17.09.2013 01:05

Thanks for the tip.

Ответить
Youssef
Youssef - 16.09.2013 16:31

Thanks a lot for this great effort Dan!

Ответить