alexvistas
New Member
- Joined
- Mar 2, 2010
- Messages
- 23
Hello, I hope someone can help with a formula that can apply a dynamic range rule to a function argument?
I am using the min and max functions applied to sets of ranges of data. The ranges are all different lengths:
Example:
Cols A:D have number values in them.
Col E classifies the numbers as either "Green" or "Red"
Col F has the min function
Col G has the max function
Each set of data is broken down into chunks of green & red.
eg
A2: D4 Green
A5: D5 Red
A6:D10 Green and so on
Each separate colour chunk has a min and max value
eg Row 2 Col F =min(a2:d4)
Row 5 Col f =min((a5:d5)
Row 6 Col f =min(a6:d10)
At present I am having to go into each min and max formula and adjust the range depending on the amount of cells.
Question
Is it possible to add a rule to the min() function to dynamically apply a range rule that is saying and taking into account col E (Greens & Reds)?
Thanking you in advance. Hope the above is not too confusing.
I suspect you could use an indirect function somehow within the min function???
I am using the min and max functions applied to sets of ranges of data. The ranges are all different lengths:
Example:
Cols A:D have number values in them.
Col E classifies the numbers as either "Green" or "Red"
Col F has the min function
Col G has the max function
Each set of data is broken down into chunks of green & red.
eg
A2: D4 Green
A5: D5 Red
A6:D10 Green and so on
Each separate colour chunk has a min and max value
eg Row 2 Col F =min(a2:d4)
Row 5 Col f =min((a5:d5)
Row 6 Col f =min(a6:d10)
At present I am having to go into each min and max formula and adjust the range depending on the amount of cells.
Question
Is it possible to add a rule to the min() function to dynamically apply a range rule that is saying and taking into account col E (Greens & Reds)?
Thanking you in advance. Hope the above is not too confusing.
I suspect you could use an indirect function somehow within the min function???