Multiple Cells through same set of calculations

bryandaniel5

New Member
Joined
Sep 28, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I have a spreadsheet with a list of values that I need to run each through the same series of calculations on another sheet and then output the answer to each into another column in a table
Here is the sample table with the values i need to input into a series of calculations:
Book1
BCD
1Input ValuesOutput Values
2a12352
3b983720
4c3928
5d93849
6e35702
7f46392
8g12830
Sheet1


Here is a sample of calculations i might want to put each value through and fill in the Output Values column of the above table.
Book1
BC
2Input Value12352
3Calculation 1111.139552
4Calculation 21372795.75
5Calculation 362399.8066
6Calculation 4249748.302
7Calculation 5335599.281
8Output value27.1696309
Sheet2
Cell Formulas
RangeFormula
C2C2=Sheet1!C2:C8
C3C3=SQRT(C2)
C4C4=C3^3
C5C5=C4/22
C6C6=C5*1.274*PI()
C7C7=C6/32*43
C8C8=C7/C2
Press CTRL+SHIFT+ENTER to enter array formulas.


i've thought maybe the array function might be the answer, but after spending about 45 minutes searching the web, i can't find an answer. Anybody have any suggestions?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Here are all your calculations in a formula which you can now use in your first sheet col D and copy down:

Excel Formula:
=(((((((SQRT(C2))^3)/22)*1.274)*PI())/32)*43)/C2

Book1
BCD
1Input ValuesOutput Values
2a1235227.1696309
3b983720242.4659999
4c392815.3214842
5d9384974.8910504
6e3570246.1914260
7f4639252.6546397
8g1283027.6903487
Sheet5
Cell Formulas
RangeFormula
D2:D8D2=(((((((SQRT(C2))^3)/22)*1.274)*PI())/32)*43)/C2
 
Upvote 0
this was just a sample of calculations, what i actually need is much greater and can't easily be put in singular formula. here's the sheet that i need to run each value through
NHCRWA (10-10-23).xlsx
ABCDEFGHIJ
1
2Yellow fill = Automatic equation or copyred font text = required data entry
3White Fill = Information or data preparer must enter
4
5PROJECT INFORMATION
6Project60" WL Along Mills Rd from Copeland Dr to FM 1960Prepared by:0
7Bid Date 10/10/23
8Time 10:00 AM
9
10OwnerNHCRWA
11
12Engineer
130Bid Unit Price:$ -
14Total Estimate:$ -
15Project location:
16Suggested Unit Price:$ 1,246.72
17Total Suggested Item Price$ 386,484.09
18
19Units LF310
20Soil Conditions:
21
22Construction Procedure
23
24
25Production/Shift:12
26Shifts/Week:5Hours/Shift:10Shifts to Complete:36
27Scope DCS Inc. to:Furnish work shaft(s); F&I Casing; stockpile spoil adjacent to work shaft; grout outside casing;
28General Contractor to:furnish barricades and traffic control; furnish and install carrier pipe; furnish engineering, permits, and survey; locate existing utilities and adjust as needed; haul off spoil; back fill; and clean up.
29
30OTHER COMMENTS OR INFORMATION
31
32
33
34
35
361LABOR
371.A Crew Labor
38ClassificationNo./ShiftM. Hour/ShiftHr. RateDavisBacon Fringe BenefitStraight TimeDavis Bacon Fringe Total
39Head-In-Man21028$560.00$0.00
40Kickers21024$480.00$0.00
41Shaft Men11022$220.00$0.00
42Top Men11022$220.00$0.00
43Crane Operator11035$350.00$0.00
44Boring Machine Operator11025$250.00$0.00
4510$0.00$0.00
4610$0.00$0.00
4710$0.00$0.00
4810$0.00$0.00
49Salaried Foreman1$550.00
50TOTAL MHr/SHIFT:90Totals$2,080.00$0.00
51SHIFT ANALYSIS
52Work TypeWork Type ## SHIFTS
53Move In & Out10002
54Move on Site1025Overtime Conversion Factors
55Setup10501Hrs/Week**Choice**Factor
56Tunnel/Bore110026401
57Shaft Excavation115015011.1
58Shaft Backfill12001551.13636
59Grouting12501601.16667
60Rail Installation1300661.19696
61Pipe Installation1350721.22222
62Welding1375
63Pilot Tunnel1550
64Lost time16004
65Time & Materials1625
66Pot Holing1650
67Turn Eye1750
68Drill Shafts for Beams1800
69Dewatering1850
70Total Shifts36
71Cost/shift straight time$ 2,080.00
72Cost/shift * OT Conversion Factor$ 2,288.00
73Cost/shift Fringe Benefits$ -
74Total Cost/Shift$ 2,838.00
75
76Est. No. of Shifts36
77Total Raw Labor Cost$ 102,168.00
78Inflation Hedge %0%$ -
79TOTAL EST. LABOR COST$ 102,168.00
80Cost Per Unit$ 329.57
81
821.B Supervision% TIMENumberRateDaily TotalJob Total
83100%1$ 700.00$ 700.00$ 25,200.00
84
85TOTAL LABOR COST$ 127,368.00
86Unit Cost$ 410.86
87
882Materials
89QuantityUnit CostTotal Cost
90Steel Casing310$0.00
91Tunnel Liner Plate310$0.00
92Steel Ribs310$0.00
93Reinforced Concrete Pipe/Box310$0.00
94Lumber310$0.00
95Grout$0.00
96Concrete$0.00
97Structural Steel$0.00
98Rail & Invert$0.00
99Mud lines etc.$0.00
100Misc.-Small Tools, Etc.$ 18,390.24
101TOTAL ESTIMATED MATERIAL COST$18,390.24
102Unit cost$59.32
103
104
1053Sub Contract
106UnitsCost per UnitTotal Cost
107Dewatering$0.00
108Crane & Excavator Hauling23000$6,000.00
109Welding$0.00
110Equipment Long Hauls21000$2,000.00
111Equipment Short Hauls500$0.00
112Concrete Pumping$0.00
113Dump Truck Hauling$0.00
114Sub Contract GL Insurance$8,000.0010.47%$837.36
115TOTAL ESTIMATED SUB CONTRACT$8,837.36
116Unit Cost$28.51
117
118
1194 & 5Equipment
120
121DescriptionNumber Of Owned PiecesNumber Of Rented PiecesNumber Of ShiftsRateTotal Cost Owned EquipmentTotal Cost Rented Equipment
122BASIC TUNNEL EQUIPMENT136325$11,700.00$0.00
123BASIC BARBCO DRY BORE RIG36225$0.00$0.00
124BASIC BARBCO DRY BORE TOOLS36$0.00$0.00
125Gen Set for TBM36225$0.00$0.00
126Excavator136650$23,400.00$0.00
127Crane136600$0.00$21,600.00
128Rubber Tire Loader36$0.00$0.00
129Standard jacks, rails, power unit36$0.00$0.00
130Grout Pump/Hose13650$1,800.00$0.00
131Large Jacks, Stands, Power unit36$0.00$0.00
132Skid Steer Loader36$0.00$0.00
133TBM/Shield36$0.00$0.00
134Trench Boxes236135$0.00$9,720.00
135$36,900.00$31,320.00
136Fuel, Oil, & maintenance32%$11,808.00$10,022.40
137TOTAL ESTIMATED EQUIPMENT COST:$48,708.00$41,342.40
138UNIT COST:$ 157.12$ 133.36
139
140
1416LABOR BURDEN
142TOTAL ESTIMATED LABOR BURDEN33%Percent of Raw Labor Dollars$33,715.44
143
1449FIELD OVERHEAD ALLOCATION
145FIELD OVERHEAD ALLOCATION35%Percent of Raw Labor Dollars$35,758.80
146
14710PER DIEM
148# EmployeesRate# ShiftsTotal
149Per Diem15036$ -
150
151CONTINGENCY
152Description#AmountTOTALNOTE: this is factored into the suggested price but is not included in the budget.
153$ -
154$ -
155Total Contingency Cost$ -
156
157SUMMARY
158
159#Work Type Projected Cost
160Cost/Ft.Total CostsPCT SuggestedPCT Actual
1611Labor$ 410.86$ 127,368.0033%0%
1622Materials$ 59.32$ 18,390.245%0%
1633Sub Contract$ 28.51$ 8,837.362%0%
1644Owned Equipment$ 157.12$ 48,708.0013%0%
1655Rented Equipment$ 133.36$ 41,342.4011%0%
1666Labor Burden$ 108.76$ 33,715.449%0%
1679Field Overhead Allocation$ 115.35$ 35,758.809%0%
16810Per Diem$ -$ -0%0%
169n/aContingency$ -$ -0%0%
170Total Field Cost$ 1,013.29$ 314,120.2481%0%
171
172General Overhead$ 108.76$ 33,715.449%0%
173Total Job Costs$ 1,122.05$ 347,835.6890%0%
174GENERAL OVERHEAD %:33%of raw labor dollarsActual bid reasoning:
175
176Bid Suggested Bid Actual Bid
177Price per footTotalPrice per footTotal
178TOTAL BID$ 1,246.72$ 386,484.09$0.00
179
180
181Total Profit Calculation Based on Suggested Price Based on Actual Bid
182Per LFTotalPrice per foot Total
183Job Profit before income taxes$ 124.67$ 38,648.41$ (1,122.05)($347,835.68)
184Income taxes49.2515,266.12$ (443.21)$ (137,395.09)
185Job Profit after income taxes$ 75.43$ 23,382.29$ (678.84)$ (210,440.59)
186
187TOTAL MAN HOURS TO COMPLETE3,240
188COST PER SHIFT$ 9,662.10
189
Estimate One
Cell Formulas
RangeFormula
G6G6='TAKE OFF'!C6
D6D6='TAKE OFF'!B2
D7:D8D7='TAKE OFF'!B4
D10D10='TAKE OFF'!B3
C13C13='TAKE OFF'!B7:D7
I13I13=G178
I14I14=H178
I16I16=D178
I17I17=E178
D19D19='Price Calculator'!B3:B21
I26I26=E70
H39:H48,I122:I134H39=D39*E39*F39
I39:I48I39=D39*E39*G39
E39E39=F26
E40E40=F26
E41E41=F26
E42E42=F26
E43E43=F26
E44E44=F26
E45E45=F26
E46E46=F26
E47E47=F26
E48E48=F26
E50E50=SUM(D39:D49)*F26
H50:I50H50=SUM(H39:H48)
E56E56=ROUNDUP((D19)/D25,0)-E67
E64E64=ROUNDUP(SUM(E53:E63, E65:E69)*10%,0)
E70E70=SUM(E53:E69)
H71H71=H50
H72H72=IF(G57>=1,H71*H57,IF(G58>=1,H71*H58,IF(G59>=1,H71*H59,IF(G60>=1,H71*H60,IF(G61>=1,H71*H61,H71)))))
H73H73=I50
H74H74=H72+H73+H49
H76H76=E70
H77H77=H74*E70
H78H78=H77*(G78)
H79,G155H79=SUM(H77:H78)
H80H80=H79/D19
G83G83=F83*E83*D83
H83H83=F83*E83*D83*I26
H85H85=H83+H79
H86H86=H85/D19
D90D90=D19
D91D91=D19
D92D92=D19
D93D93=D19
D94D94=D19
F90:F99,G153:G154,F107:F114F90=D90*E90
F100F100=H79*18%
F101F101=SUM(F90:F100)
F102F102=F101/D19
D114D114=SUM(F107:F113)
E114E114=0.04084+0.06383
F115F115=ROUNDUP(SUM(F107:F114),2)
F116F116=F115/D19
H122:H134H122=D122*F122*G122
H135:I135H135=SUM(H122:H134)
H136H136=H135*0.32
I136I136=I135*D136
H137:I137H137=H136+H135
H138:I138H138=H137/$D19
F122F122=E70
F123F123=E70
F124F124=E70
F125F125=E70
F126F126=E70
F127F127=E70
F128F128=E70
F129F129=E70
F130F130=E70
F131F131=E70
F132F132=E70
F133F133=E70
F134F134=E70
H142H142=H79*E142
H145H145=E145*$H$79
F149F149=E70
G149G149=D149*E149*F149
D161D161=E161/D19
E161E161=H85
F161:F170,F172:F173F161=E161/$E$178
G161:G170,G172:G173G161=IF($G$178="",0,E161/$H$178)
D162D162=E162/D19
E162E162=F101
D163D163=E163/D19
E163E163=F115
D164:D165D164=E164/$D$19
E164E164=H137
E165E165=I137
D166D166=E166/D19
E166E166=H142
D167D167=E167/D19
E167E167=H145
D168D168=E168/D19
E168E168=G149
D169D169=E169/D19
E169E169=G155
D170D170=E170/D19
E170E170=SUM(E161:E169)
D172D172=E172/D19
E172E172=D174*H79
D173D173=D170+D172
E173E173=E172+E170
D178D178=E178/D19
E178E178=E173/0.9
H178H178=G178*D19
D183D183=E183/D19
E183E183=E178-E173
D184D184=E184/D19
E184E184=0.395*E183
D185D185=E185/D19
E185,H185E185=E183-E184
G183G183=H183/D19
H183H183=H178-E173
G184G184=H184/D19
H184H184=H183*0.395
G185G185=H185/D19
E187E187=E50*E70
E188E188=E173/E70
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Ah, I see. When you input a value on the second sheet, is there any further manual input before you get the final output? And which cell is the input value entered in on the second sheet?
 
Upvote 0
Cell D19 is where I would normally enter the value from the Table with list of values. There's a bunch of other variables to adjust and enter but those would remain constant regardless of what is entered in D19. The value that results from the calculation in I16 is what i want to go into the table with all the input variables. I can do this manually but i'd like to find an easier way that can be used over and over.

Cell Formulas
RangeFormula
A3:A21A3='TAKE OFF'!D24
 
Upvote 0
I'm thinking a short bit of VBA to loop through the input variables and enter them into D19, then copy the output back to the first sheet will best here. If only formulas could push values to other cells.
 
Upvote 0
Give this a try in the sheet code for "Price Calculator".

VBA Code:
Private Sub PriceCalc()
Dim ws As Worksheet
Dim i&, lRow&

Set ws = Worksheets("Estimate One")

lRow = Range("B" & Rows.Count).End(xlUp).Row

For i = 3 To lRow
    ws.Range("D19").Value = Range("B" & i).Value
    Range("C" & i).Value = ws.Range("I16").Value
Next i
    
End Sub
 
Upvote 0
well I guess I'll have to learn VBA. thanks for your help! any recommendations about the best place to learn VBA?
 
Upvote 0
well I guess I'll have to learn VBA. thanks for your help! any recommendations about the best place to learn VBA?
Google and a desire to create a fancy spreadsheet, haha. That is how I learned. I had some programming logic experience before learning VBA so it's just been a case of learning the language for me. I am not nearly as quick or fluent as most other regulars here, but I can get the job done most of the time.

And you're welcome. I am happy to help.
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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