Total Specific Sections in Auto-filled Spreadsheet

cdnMech

New Member
Joined
Apr 24, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

The plumbing estimation software that we use spits out all of the information into an Excel document. The Detail tab is where every length of pipe, quantity of fitting, etc is organized within each spec that I used in my take off. My boss wants to have each quantity of pipe required rounded up to the nearest full length. I'm sick of manually calculating and entering, and there has to be a better way! I came up with a possible solution, but there one big annoying hurdle. In the Detail tab where the information is automatically populated, you cannot add any text or forumulas, because they are deleted everytime the file is exported (no matter how far over to the right you go). I created a copy of the detail tab and referenced each cell to the main detail tab, which works, but I would have to add a subtotal formula manually each time. Which would be annoying. Is there a formula to AutoSum each individual section (spec)? The size of each section and the number of sections will vary widely based on the requirements of the job. The Subtotal is at the bottom of each section, and outside of the first section there is a space between each section (as shown below).

For example, in the attached picture there are two Breaching (BRC) specs/sections from the main Detail tab. Below them are sixteen other specs/sections. (P.s. the pricing is fictional for this example)

DETAIL TAB TEST.xlsm
ABCDGHIJ
8 List Matl Unit Price
9SpecQtySizeDescription Price Disc Price Total
10BRC01103.818CPVC Sys 636 Pipe (10LZ)$ 8.00Q$ 8.00$ 830.48
11108Solvent Weld Joints$ 2.001.0$ 2.00$ 20.00
1258Flue Gas 636 CPVC Coupling$ 15.00Q$ 15.00$ 75.00
13148Pipe Label$ 8.001.0$ 8.00$ 112.00
14268Plain Standard Clevis Hanger$ 20.00Q$ 20.00$ 520.00
15781/2Hex Nuts$ 0.25Q$ 0.25$ 19.50
16781/2Plain Washer$ 0.21Q$ 0.21$ 16.38
17261/2Plain Wide Jaw Top C-Clamp$ 4.00Q$ 4.00$ 104.00
181041/2Plain Threaded Rod (10LZ)$ 1.20Q$ 1.20$ 124.80
19BRC01444.81(SUBTOTAL)$ 1,822.16
20
21BRC0269.314PVC Sys 636 Pipe (10LZ)$ 15.00Q$ 15.00$ 1,039.60
2214Pipe Label$ 8.001.0$ 8.00$ 8.00
23134Flue Gas 636 PVC 90 Ell$ 30.00Q$ 30.00$ 390.00
24304Solvent Weld Joints$ 2.001.0$ 2.00$ 60.00
2524Flue Gas 636 PVC Coupling$ 12.00Q$ 12.00$ 24.00
2694Pipe Label$ 8.001.0$ 8.00$ 72.00
27154Plain Standard Clevis Hanger$ 6.00Q$ 6.00$ 90.00
28153/8Hex Nuts$ 0.15Q$ 0.15$ 2.25
29153/8Plain Washer$ 0.10Q$ 0.10$ 1.50
30153/8Plain Wide Jaw Top C-Clamp$ 3.15Q$ 3.15$ 47.25
31603/8Plain Threaded Rod (10LZ)$ 0.80Q$ 0.80$ 48.00
32BRC02244.31(SUBTOTAL)$ 1,782.60
Detail
Cell Formulas
RangeFormula
I10:I18,I21:I31I10=G10*IF(H10="Q",1,H10)
B19,J19B19=SUM(B10:B18)
J10:J18,J21:J31J10=B10*I10
B32,J32B32=SUM(B21:B31)


Below is from the copied Detail Tab:

Cell Formulas
RangeFormula
B4:E26B4=IF(Detail!A10="","",Detail!A10)
F4:G26F4=IF(Detail!I10="","",Detail!I10)
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Have you considered Pivot Table?
Book1
ABCDEFGHIJK
8 List Matl Unit Price
9SpecQtySizeDescription Price Disc Price Total Row LabelsSum of Total
10BRC01103.80969888CPVC Sys 636 Pipe (10LZ)8Q8830.4775907BRC01$ 1,822.16
11BRC01108Solvent Weld Joints21220BRC02$ 1,782.60
12BRC0158Flue Gas 636 CPVC Coupling15Q1575Grand Total$ 3,604.75
13BRC01148Pipe Label818112
14BRC01268Plain Standard Clevis Hanger20Q20520
15BRC01781/2Hex Nuts0.25Q0.2519.5
16BRC01781/2Plain Washer0.21Q0.2116.38
17BRC01261/2Plain Wide Jaw Top C-Clamp4Q4104
18BRC011041/2Plain Threaded Rod (10LZ)1.2Q1.2124.8
19BRC0269.306474374PVC Sys 636 Pipe (10LZ)15Q151039.597115
20BRC0214Pipe Label8188
21BRC02134Flue Gas 636 PVC 90 Ell30Q30390
22BRC02304Solvent Weld Joints21260
23BRC0224Flue Gas 636 PVC Coupling12Q1224
24BRC0294Pipe Label81872
25BRC02154Plain Standard Clevis Hanger6Q690
26BRC02153/8Hex Nuts0.15Q0.152.25
27BRC02153/8Plain Washer0.1Q0.11.5
28BRC02153/8Plain Wide Jaw Top C-Clamp3.15Q3.1547.25
29BRC02603/8Plain Threaded Rod (10LZ)0.8Q0.848
Sheet8
Cell Formulas
RangeFormula
G10:G29G10=E10*IF(F10="Q",1,F10)
H10:H29H10=B10*G10
 
Upvote 0
I tried a pivot table, but I am not used them very much, and to be honest I was not able to set it up like you did. How did you get BRC01 and BRC02 on every line without adding it to each line?
Ideally I wanted to keep the same look and layout as the main detail tab, as this is the backbone of my export, I have multiple other tabs pulling all their information from thie Detail tab. If it's not possible I'm willing to change. I hoped there was a formula I could use like =IF(D13="(SUBTOTAL)", [insert AutoSum equation to total up to a cell without a number],Detail!J19". Because if I hit the AutoSum button in the ribbon it will calculate from the cell immediately above and the stop a the first cell with a space or non-number.
 
Upvote 0
Here's one way to fill blank cells.

Another option is this. You'd need to do a little cleanup.
Cell Formulas
RangeFormula
I10:I18,I21:I31I10=G10*IF(H10="Q",1,H10)
J10:J18,J21:J31J10=B10*I10
K11K11=IF(ISBLANK(J10),0,J10+K9)
K12:K32K12=IF(ISBLANK(J11),0,J11+K11)


Thrid is VBA.
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,852
Members
449,194
Latest member
HellScout

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top