Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2024, 02:17 AM
Marcia's Avatar
Marcia Marcia is offline Sum values below blank cell Windows 11 Sum values below blank cell Office 2021
Expert
Sum values below blank cell
 
Join Date: May 2018
Location: Philippines
Posts: 551
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default Sum values below blank cell

Hi all. I have a spreadsheet that needs a subtotal of values below a blank cell. Is there a single formula that I could use to get the subtotals by filtering the cells where the subtotals are and pressing Ctrl+Enter? I would like to use =SUBTOTAL(109) instead of the SUM function to get the totals.
Attached is a sample table. The real table contains around 3,800 subtotals.


Thank you.
Attached Files
File Type: xlsx Sum Below Blank Cell.xlsx (11.0 KB, 13 views)
Reply With Quote
  #2  
Old 11-22-2024, 08:47 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Sum values below blank cell Windows 10 Sum values below blank cell Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

I don't quite understand your query
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 11-24-2024, 07:05 PM
Marcia's Avatar
Marcia Marcia is offline Sum values below blank cell Windows 11 Sum values below blank cell Office 2021
Expert
Sum values below blank cell
 
Join Date: May 2018
Location: Philippines
Posts: 551
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by Pecoflyer View Post
I don't quite understand your query
Okay. In the attached sample table, if I select C8:C35, what is the formula that would get the subtotal of all values above the formula until the blank cells? That after entering the formula, I press Ctrl+Enter to apply the code in all the selected cells where the subtotals should be?
Thank you.
Reply With Quote
  #4  
Old 11-25-2024, 06:28 AM
ArviLaanemets ArviLaanemets is offline Sum values below blank cell Windows 8 Sum values below blank cell Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Instead of copy of paper table from 18.-19. century, use a table with structure like
Name, Amount1, Amount22, Amount222
or even better
Name, WhateverParameter, Amount

Then you can simply create a pivot table which will give you any totals and subtotals you need.
Reply With Quote
  #5  
Old 11-26-2024, 01:26 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Sum values below blank cell Windows 10 Sum values below blank cell Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

I still don't get it. Could you please fill in some desired results manually. Thx
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 11-26-2024, 05:26 AM
Marcia's Avatar
Marcia Marcia is offline Sum values below blank cell Windows 11 Sum values below blank cell Office 2021
Expert
Sum values below blank cell
 
Join Date: May 2018
Location: Philippines
Posts: 551
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by Pecoflyer View Post
I still don't get it. Could you please fill in some desired results manually. Thx
Attached is the desired result in another table. Thank you.
Attached Files
File Type: xlsx Sum Below Blank Cell.xlsx (13.0 KB, 9 views)
Reply With Quote
  #7  
Old 11-29-2024, 01:02 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Sum values below blank cell Windows 10 Sum values below blank cell Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Would using some extra columns help?
Attached Files
File Type: xlsx Sum Below Blank Cell(3).xlsx (14.6 KB, 4 views)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #8  
Old 12-03-2024, 08:02 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Sum values below blank cell Windows 10 Sum values below blank cell Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Any success?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #9  
Old 12-04-2024, 02:46 AM
Marcia's Avatar
Marcia Marcia is offline Sum values below blank cell Windows 11 Sum values below blank cell Office 2021
Expert
Sum values below blank cell
 
Join Date: May 2018
Location: Philippines
Posts: 551
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by Pecoflyer View Post
Any success?
I'm sorry. I had been swamped by other tasks. Adding helper columns would mess the table. Thank you for the suggestion. I could use it in other data problems.
Reply With Quote
  #10  
Old 12-04-2024, 03:53 AM
ArviLaanemets ArviLaanemets is offline Sum values below blank cell Windows 8 Sum values below blank cell Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Why don't do it as in added example instead?

The totals calculation doesn't depend on order the data are entered into tData Table. I.e. there is no need for entered data to be sorted in any way (e.g. by Group);
To add new groups later, you simply add a new row into tTotals Table with new group value, and after that you can add any number entries for new group into tData Table - without any need to redesign of any formulas.

In tData Table, you can hide the Group column, in case you want this.
I freezed the rows until the header row of tData table, so this header and tTotals Table will be always visible.

(Btw. You can define the Group column of tTotals Table as Named Range, and use it as the source of Data Validation List for Group column in tData Table)
Attached Files
File Type: xlsx SumExample.xlsx (12.2 KB, 4 views)
Reply With Quote
  #11  
Old 12-05-2024, 02:30 AM
Marcia's Avatar
Marcia Marcia is offline Sum values below blank cell Windows 11 Sum values below blank cell Office 2021
Expert
Sum values below blank cell
 
Join Date: May 2018
Location: Philippines
Posts: 551
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Thank you Arvil. Yours is another idea and approach that I could use later.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to match values in one column to values in six others and return the value of a cell from corre SnakeDoctor Excel 4 09-09-2024 12:55 PM
IF cell in Col A is populated BUT cell in Col C is blank DELETE ROW ChrisOK Excel Programming 7 05-05-2019 09:00 PM
Sum values below blank cell Fill blank cell with value from adjacent cell kevinbradley57 Excel Programming 2 04-17-2018 08:40 AM
Sum values below blank cell Formulato say if cell is blank do this, if not blank do this. mbesspiata Excel 1 01-17-2015 05:02 AM
Sum values below blank cell Convert non-cell input to cell values TBD Excel 3 06-09-2014 06:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft