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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,531
Messages
6,120,073
Members
448,943
Latest member
sharmarick

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