instead of formulas, maybe try using the distribution platform's capability report
first set some specification limits via the column properties
Screen Shot 2023-02-06 at 3.42.41 PM.png
next, just do a histogram on the column, capability happens automatically, and the smallest bit at the bottom has what you might be looking for.
Screen Shot 2023-02-06 at 3.43.29 PM.png
JMP Systems Engineer, Health and Life Sciences (Pharma)