Formula to normalize a measurement then take an average of the normalized, all referencing an input search term.

SURFER349

Board Regular
Joined
Feb 22, 2017
Messages
50
So I need to figure out a formula to output the normalized average of each step.
For example, for each RUN, I need to normalize the measurement by the # of points: (measurement/#points)
then I want to take the average of all the Step 1 rows.

I tried using averageIF equation, but I can't use that to do the normalization first.
any thoughts?

Like this:


StepRun# of pointsMeasure1
1​
1​
24​
0.88​
1​
2​
25​
0.11​
1​
3​
25​
0.89​
1​
4​
25​
0.71​
1​
5​
23​
0.77​
2​
1​
22​
0.15​
2​
2​
20​
0.99​
2​
3​
19​
0.54​
2​
4​
25​
0.70​
2​
5​
17​
0.40​
3​
1​
20​
0.62​
3​
2​
21​
0.97​
3​
3​
25​
0.92​
3​
4​
2​
0.47​
3​
5​
25​
0.56​
4​
1​
25​
0.52​
4​
2​
25​
0.94​
4​
3​
24​
0.63​
4​
4​
23​
0.28​
4​
5​
21​
0.44​
5​
1​
24​
0.40​
5​
2​
25​
0.62​
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
maybe
Book1
ABCDEF
1StepRun# of pointsMeasure1DivideAverage
211240.880.0366670.027709
312250.110.00440.027709
413250.890.03560.027709
514250.710.02840.027709
615230.770.0334780.027709
721220.150.0068180.027254
822200.990.04950.027254
923190.540.0284210.027254
1024250.70.0280.027254
1125170.40.0235290.027254
1231200.620.0310.074278
1332210.970.046190.074278
1433250.920.03680.074278
153420.470.2350.074278
1635250.560.02240.074278
1741250.520.02080.023555
1842250.940.03760.023555
1943240.630.026250.023555
2044230.280.0121740.023555
2145210.440.0209520.023555
2251240.40.0166670.020733
2352250.620.02480.020733
Sheet1
Cell Formulas
RangeFormula
E2:E23E2=[@Measure1]/[@['# of points]]
F2:F23F2=AVERAGEIF([Step],[@Step],[Divide])
 
Upvote 0
yea, this is what I'm running in to. Can that be combined into a single formula? It seems that this can only be done by creating a new "DIVIDE" column, then taking the average of that.
 
Upvote 0
maybe any formula master will help with single formula.
I quit the formula game a long time ago ?
 
Upvote 0
How about

+Fluff New.xlsm
ABCDG
1StepRun# of pointsMeasure1Column1
211240.880.02770899
312250.110.02770899
413250.890.02770899
514250.710.02770899
615230.770.02770899
721220.150.02725373
822200.990.02725373
923190.540.02725373
1024250.70.02725373
1125170.40.02725373
1231200.620.0742781
1332210.970.0742781
1433250.920.0742781
153420.470.0742781
1635250.560.0742781
1741250.520.02355526
1842250.940.02355526
1943240.630.02355526
2044230.280.02355526
2145210.440.02355526
2251240.40.02073333
2352250.620.02073333
Main
Cell Formulas
RangeFormula
G2:G23G2=SUMPRODUCT(([Step]=[@Step])*([Measure1]/['# of points]))/COUNTIFS([Step],[@Step])
 
Upvote 0
I think this is getting really close! This is going to sound dumb, but I don't think I know enough about how to use table arrays to really make sense of this. The final issue I am running into is the output table will not have (per example) 23 rows, but a summary of steps 1 thru 5.

How to make a single row output for Step#1 that outputs the average of normalized data?
 
Upvote 0
Ok, how about
Book2.xlsx
ABCDEFPQRST
1Source DataAverage of runs=avg of runs for each param
2
3Step#RunQTYParam1Param2Param3Step#Param1Param2Param3
411221.100.3227.9710.05210.15911
512240.160.9514.0720.10110.14561
613151.010.277.9130.15140.14611
714152.310.7249.0640.18980.11641
815250.310.9145.0750.24710.06941
921160.990.554.96
1022191.330.4636.55
1123252.510.7943.44
1224214.050.7545.35
1325204.810.2119.99
1431191.570.498.00
1532201.490.4146.26
1633164.370.4619.14
1734222.370.079.67
1835240.290.3828.08
1941204.800.3738.06
2042222.210.7422.42
2143192.130.6944.52
2244243.180.9127.19
2351173.310.9732.12
2452254.070.0440.86
Sheet1
Cell Formulas
RangeFormula
R4:T8R4=SUMPRODUCT(($A$4:$A$24=$Q4)*(A$4:A$24/$C$4:$C$24))/COUNTIFS($A$4:$A$24,$Q4)
 
Upvote 0
try
=IF([@Step]=A3,"",SUMPRODUCT(([Step]=[@Step])*([Measure1]/['# of points]))/COUNTIFS([Step],[@Step]))

Book1
ABCDE
1StepRun# of pointsMeasure1Column1
211240.88 
312250.11 
413250.89 
514250.71 
615230.770.027709
721220.15 
822200.99 
923190.54 
1024250.7 
1125170.40.027254
1231200.62 
1332210.97 
1433250.92 
153420.47 
1635250.560.074278
1741250.52 
1842250.94 
1943240.63 
2044230.28 
2145210.440.023555
2251240.4 
2352250.620.020733
Sheet1
Cell Formulas
RangeFormula
E2:E23E2=IF([@Step]=A3,"",SUMPRODUCT(([Step]=[@Step])*([Measure1]/['# of points]))/COUNTIFS([Step],[@Step]))
 
Upvote 0

Forum statistics

Threads
1,215,556
Messages
6,125,495
Members
449,235
Latest member
Terra0013

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