Hi all,
I am trying to find the way to obtain the minimum value from a range, with some conditions.
So I have column A with some list of products, and each one have a list of countries (column B). Column A therefor has many duplicates, and Column B should be unique values, per each Col A value.
Then column C has some value. And the idea is, to make a formula that will take the range of the column A, for product A (example), and then from Column C, find the lowest option (by doing a "left(x,1)" to obtain the lowest number) and apply it to the whole product A (as mentioned as example). So each Product in col A will have same value in col D, being the smallest of the range.
Id like to think its making sense what i tried to explain. As for now my struggle is in making the condition. I'm currently using couple columns with CountIfs to obtain numbers and then comparing them columns to check if its same (in which case, would be easy to apply same value to all range) ... and when not, then find the smaller value and apply to them all. but i think I'm overdoing it and there might be easier way or a smartest formula to do all I am doing in a shorter way.
Thanks in advance!
I am trying to find the way to obtain the minimum value from a range, with some conditions.
So I have column A with some list of products, and each one have a list of countries (column B). Column A therefor has many duplicates, and Column B should be unique values, per each Col A value.
Then column C has some value. And the idea is, to make a formula that will take the range of the column A, for product A (example), and then from Column C, find the lowest option (by doing a "left(x,1)" to obtain the lowest number) and apply it to the whole product A (as mentioned as example). So each Product in col A will have same value in col D, being the smallest of the range.
A | B | C | D |
Product | Country | Value | Formula result example |
A | AB | 1 - X | 1 - X |
A | AC | 2 - Y | 1 - X |
A | AD | 1 - X | 1 - X |
B | AB | 2 - Y | 1 - X |
B | AC | 3 - Z | 1 - X |
B | AD | 1 - X | 1 - X |
C | AE | 3 - Z | 3 - Z |
C | AB | 3 - Z | 3 - Z |
Id like to think its making sense what i tried to explain. As for now my struggle is in making the condition. I'm currently using couple columns with CountIfs to obtain numbers and then comparing them columns to check if its same (in which case, would be easy to apply same value to all range) ... and when not, then find the smaller value and apply to them all. but i think I'm overdoing it and there might be easier way or a smartest formula to do all I am doing in a shorter way.
Thanks in advance!