Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by klitton7
at 2024-07-21 13:15:20
Point:500 Replies:9 POST_ID:829058USER_ID:11961
Topic:
Microsoft Excel Spreadsheet Software;;
I am using Excel 2010. I have a worksheet that will grow over time. It currently has 3 pages. I need a subtotal to appear at bottom of each page, preferably not in the footer, but at the bottom of the text on each page. Columns that need totals are L, M & O. It could be that we will adjust row height and the number of rows per page may change at some point in time.
I have attached the worksheet.
Thanks for your help.
I have attached the worksheet.
Thanks for your help.
Attachment:Bad-Debt-Log-Master-X-.xls
Expert: Glenn Ray replied at 2024-08-26 09:51:34
You're welcome. Thank you for following up on this.
Regards,
-Glenn
Regards,
-Glenn
Author: klitton7 replied at 2024-08-26 09:49:46
Works great! Thanks Glenn
Expert: Glenn Ray replied at 2024-08-07 15:05:58
You're welcome. Thank you for following up on this.
Regards,
-Glenn
Regards,
-Glenn
Accepted Solution
Expert: Glenn Ray replied at 2024-07-22 00:26:29
500 points EXCELLENT
I looked at modifying the existing macros in your workbook, but none of them appeared to run properly, so I just created two new ones. I added buttons to the sheet that will let you add or remove the subtotal lines at your discretion.
These macros will insert a subtotal line to the bottom of each sheet (every 26 rows of data) and add a final grand total line at the end.
A possible issue would occur if your final page had exactly 26 rows, in which case the grand total line would fall on its own page. Otherwise, it should run with as many rows as you have in your worksheet. With each iteration, you'd want to remove existing subtotals first, then add them back again.
Regards,
-Glenn
These macros will insert a subtotal line to the bottom of each sheet (every 26 rows of data) and add a final grand total line at the end.
A possible issue would occur if your final page had exactly 26 rows, in which case the grand total line would fall on its own page. Otherwise, it should run with as many rows as you have in your worksheet. With each iteration, you'd want to remove existing subtotals first, then add them back again.
Regards,
-Glenn
Expert: duncanb7 replied at 2024-07-21 14:46:25
Just reminder, did you know you can record what you edit or action you did or you want on Excel cell across different workbook and sheet into macro by Excel function of "Macro Recording" that will save your expectation vba code into macro on VBA editor. Take a look at this Macro Recording tutorial at this site
https://www.youtube.com/watch?v=nvWpFdo7EO0
Duncan
https://www.youtube.com/watch?v=nvWpFdo7EO0
Duncan
Expert: duncanb7 replied at 2024-07-21 14:36:03
I just see one page in your workbook
Duncan
Duncan
Author: klitton7 replied at 2024-07-21 14:27:38
Thanks for your response Duncan, but I need each page to have a total for that page, and then a grand total on the last page. Sorry, I'm sure I didn't make that clear.
Expert: duncanb7 replied at 2024-07-21 14:06:37
Try this put the sum(L6:L60000) on the around the top of the page so
that you can add many number rows under row6 without affecting the sum value
Please see attached
Duncan
that you can add many number rows under row6 without affecting the sum value
Please see attached
Duncan
Expert: DTHConsulting replied at 2024-07-21 13:37:15
I'm sure that there is some fancy way to accomplish that with a macro - However - The problem becomes when you add a new item (row) it will wipe out the total. If you know about how large the sheet will grow to, Put the total at the top of the column. So the total(s) cell will be =sum(L7:L10000) =sum(M7:M10000) and =sum(N7:N10000)
It will ignore the blanks when adding everything up
If you MUST have them at the bottom of the page - you would have to insert a row somewhere in the range that is being totaled
It will ignore the blanks when adding everything up
If you MUST have them at the bottom of the page - you would have to insert a row somewhere in the range that is being totaled