PDA

View Full Version : [SOLVED:] Condition Base Min & Max



r_know
12-15-2020, 03:33 PM
Dear Friends,

I am looking for a min and maximum in between two hundred. These hundreds found in "C" columns, respectively (offset) "B" column checked to find the min and maximum value in that range to calculate the % for min & max value.

A sample file is attached in a very detailed explanation with highlighted cells.

Thanks, Regards R_know

27580

p45cal
12-16-2020, 02:19 PM
To give you a simple solution:
In D2:

=IF(AND($C2=100,$C3=""),MIN($B2:INDEX($B2:$B$1854,MATCH(100,$C3:$C$1854,0))),"")
in E2:

=IF(AND($C2=100,$C3=""),MAX($B2:INDEX($B2:$B$1854,MATCH(100,$C3:$C$1854,0))),"")
In F2:

=IFERROR(E2/D2-1,"")
Copy down.
Finally, to cheat, place 100 in cell C1854!

You might have to commit the formulae in columns D and E using Ctrl+Shift+Enter rather than the plain old Enter, depending on your version of Excel.

r_know
12-16-2020, 03:34 PM
Many Thanks p45cal
I appreciated your quick response in simple ways...