Forum Discussion
Iterate and print Min and Max numbers in dynamic range
- Aug 09, 2022
You mentioned "So i need the Min&Max value of all the data between B7:E10". E contains duplicates of columns to the left, so I omitted it. Now you want A to D...
In G2:
=IF($E2="","",MIN(INDEX($A:$A,MAX(IF($E$1:$E1<>"",ROW($E$1:$E1)))):INDEX($D:$D,MAX(IF($E$1:$E2<>"",ROW($E$1:$E2))))))
In H2:
=IF($E2="","",MAX(INDEX($A:$A,MAX(IF($E$1:$E1<>"",ROW($E$1:$E1)))):INDEX($D:$D,MAX(IF($E$1:$E2<>"",ROW($E$1:$E2))))))
These formulas look at columns A, B, C and D, not just A and D.
In G2:
=IF($E2="","",MIN(INDEX($B:$B,MAX(IF($E$1:$E1<>"",ROW($E$1:$E1)))):INDEX($D:$D,MAX(IF($E$1:$E2<>"",ROW($E$1:$E2))))))
In H2:
=IF($E2="","",MAX(INDEX($B:$B,MAX(IF($E$1:$E1<>"",ROW($E$1:$E1)))):INDEX($D:$D,MAX(IF($E$1:$E2<>"",ROW($E$1:$E2))))))
Fill down.
- HansVogelaarAug 09, 2022MVP
You mentioned "So i need the Min&Max value of all the data between B7:E10". E contains duplicates of columns to the left, so I omitted it. Now you want A to D...
In G2:
=IF($E2="","",MIN(INDEX($A:$A,MAX(IF($E$1:$E1<>"",ROW($E$1:$E1)))):INDEX($D:$D,MAX(IF($E$1:$E2<>"",ROW($E$1:$E2))))))
In H2:
=IF($E2="","",MAX(INDEX($A:$A,MAX(IF($E$1:$E1<>"",ROW($E$1:$E1)))):INDEX($D:$D,MAX(IF($E$1:$E2<>"",ROW($E$1:$E2))))))
These formulas look at columns A, B, C and D, not just A and D.
- NVAug 09, 2022Copper ContributorThanks a ton Hans Vogelaar for your kind help. It's fulfilling my requirement now. Thanks again for your quick and kind help.