Solution to return a Fail Point value (given required accuracy and sample size)

SerenityNetworks

Board Regular
Joined
Aug 13, 2009
Messages
131
Office Version
  1. 365
Platform
  1. Windows
I would like to have a single cell solution that combines functions to return a failure point value when provided a required accuracy and sample size. For example, looking at the bottom table, we have a required accuracy of 99.50% (a variable) and a sample size of 1002 (another variable). With 5 errors we have an accuracy of 99.501%, which is (1002-5)/1002. This is still above 99.50%. But with 6 errors, (1002-6)/1002, we have an accuracy of 99.401%. This is the first whole number where the accuracy falls below the required 99.50%. I need a formula that returns this "failure point" value. I would very much like it to be a single cell formula that doesn't require supporting tables. You can see in the bottom table, I can return the number I need using the VLOOKUP function, but for my uses this would be very cumbersome; thus the desire for a single cell solution. If this is possible, I don't know how to construct it.

Any help will be greatly appreciated.

Thank you,
Andrew


What I would like:


1
A
B
2Required
99.50%
3Samples
1002
4Fail Point
A formula that returns 6

<colgroup><col style="width:48pt" width="64" span="2"> <col style="width:95pt" width="126"> </colgroup><tbody>
</tbody>

What I can do, but don't like:
What I need can be accomplished using the VLOOKUP function. But this requires a table be constructed with at least the maximum number or errors allowed and then ordered by errors descending. As I need to simultaneously make this calculation for 20 or more different sample sizes, constructing all these tables that are needed for a VLOOKUP to be conducted in an automated fashion would be a bit problematic.

13
S
T
U
V
14
15Required99.50%
16Fail Point 6
17Samples
Accuracy
Errors
=VLOOKUP(T15,$T$18:$U$28,2,TRUE) [Returns 6]
18100299.002%10
19100299.102%9
20100299.202%
8
21100299.301%
7
22100299.401%6
23100299.501%5
24100299.601%4
25100299.701%3
26100299.800%2
27100299.900%1
281002100.000%0

<colgroup><col span="2"><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
That is perfect! Although it's simple, it took me a few minutes to wrap my head around why/how it works. Thank you so very much.

Andrew
 
Upvote 0
I just solved your equation algebraically for the Fail Point value, then rounded up (adding .0001 to make sure that exact matches round up too).

Happy to help! :cool:
 
Upvote 0

Forum statistics

Threads
1,215,537
Messages
6,125,386
Members
449,221
Latest member
DFCarter

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