Formula for clinical research. % of 2 closest numbers as values are added.

AlexBn

New Member
Joined
May 25, 2021
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
In the process of collecting data and I'm far from competent with excel. Measurements are performed twice unless the values are not within 20% of each other (numerical values). If not within 20%, testing is repeated up to 5 times. For efficiency purposes, we are trying to figure out a way for excel to automatically calculate the percentage of the two closest values each time a new value is added. I had no issues with up to 3 trials - just used =(((LARGE(A1:C1,2)/LARGE(A1:C1,1)))-1)*-100 and the same for the smallest values. With 4-5 trials this doesn't work though if the the numbers that are the closest to each other are not the 2 largest or smallest in the range.
So far I've only found posts that talk about formulas requiring already established reference values, but since we're collecting data and are trying to get the percentage calculated as we go, I wasn't able to make those functions work. I'd greatly appreciate any help!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,147,498
Messages
5,741,504
Members
423,663
Latest member
kaveh87rsh

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
Top