Hi there,
I'm a medical student currently working on a paper for which I'm doing data analysis of patients.
I ran into issue for which I could find no answer on the internet, nor anyone I knew who works with Excel could help me. Hopefully someone here can.
1. Which formule is there to select, in each row, the number closest to zero, so that the cell next to it will get a "1". As depicted in the following picture:
pic1.png
2. To add to that, my aim is to have this formula to select the number closest to zero, for each individual patient. Like in the picture below (no real names used)
pic2.png
3. Finally, I only want the number closest to zero to be selected if it is within a margin of -90 to 90. For example, if one patient has 95 as 'number closest to zero' I don't want it be selected.
I'm really hoping there is a formula to do all this, otherwise I will have to go through hunderds of patients to select all these numbers by hand.
thanks in advance
EDIT:
I missed the rule about crossposting, my apologies. I posted my questions here as well: https://www.mrexcel.com/forum/excel-...ml#post5087891
However, I prefer to continue in this post for this and following issues, if that would be alright.
Bookmarks