How to Find Minimum Value in Excel 2010 and compare it with Another cell value and return index of lowest value

StackOverflow https://stackoverflow.com/questions/22804315

  •  26-06-2023
  •  | 
  •  

سؤال

Sample Data

I would like to compare Parameters( P1,P2,P3 & P4) find minimum value out of these which would be min(b:e), then compare the minimum obtained number with the number in my reference box, if its same result should return Index of Refrence number (which is "Reference") else return index of the minimum value. If the Min of P1, p2 p3 & p4 is greater than Refrence number result should be index of Refrence number.

هل كانت مفيدة؟

المحلول

Try this:

=INDEX(E$1:I$1,1,IF(SUM(IF(E2=F2:I2,1,0))=4,1,MATCH(MIN(F2:I2),F2:I2,0)+1))

Entered as array formula by pressing CTRL+SHIFT+ENTER in Cell J2
It should look like this:

Sample Result

Then just copy it to the remaining cells.
Hope this is what you want.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top