Reputation: 11
I have a column of numbers in excel that are separated by blanks. Each group of numbers (between blanks) varies in quantity so the first group may have 5 numbers, the next 2 numbers, the next 6. I need to have excel select each group so I can run a formula to extract the largest number and the smallest number from each group. I know about min/max but don't know how to get excel to go from blank to blank setting ranges.
Upvotes: 1
Views: 31
Reputation: 152465
You can use a similar formula to this:
=IF(OR(A1="",ROW(A1)=1),MAX(A2:INDEX($A2:$A$18,MATCH(TRUE,INDEX($A2:$A$18="",0),0))),"")
So with the data in column A and the max in Column B:
Upvotes: 1