Hey Guys, new to this forum but used to using stack overflow so apologies if I mess up a little.
I have a table containing 2 variables, (X, Y), they can be any number from 0 to 100.
I need to classify them based on if they lay within a range on a graph, a little like the soil classification triangle. I have included the example below:
I have managed to nest IF and AND functions but this does not account for the diagonal seen in boxes C, D, and E.
Here is my function :
=IF(AND(B24<=100,C24>=50),"A",IF(AND(B24<=100,C24>35),"B",IF(AND(B24<=100,C24>25),"C",IF(AND(B24<=100,C24>10),"D","E"))))
Ideally this is what the end table looks like:
etc...
Any help will be greatly received.
B
I have a table containing 2 variables, (X, Y), they can be any number from 0 to 100.
X | Y |
20 | 100 |
1 | 12 |
I need to classify them based on if they lay within a range on a graph, a little like the soil classification triangle. I have included the example below:
I have managed to nest IF and AND functions but this does not account for the diagonal seen in boxes C, D, and E.
Here is my function :
=IF(AND(B24<=100,C24>=50),"A",IF(AND(B24<=100,C24>35),"B",IF(AND(B24<=100,C24>25),"C",IF(AND(B24<=100,C24>10),"D","E"))))
Ideally this is what the end table looks like:
20 | 100 | A |
1 | 5 | E |
Any help will be greatly received.
B