For this example, I will use fruits and weights to represent the formula I am trying to construct. I would like to return the rank based on the fruit falling within a weight range.
For example, I need the following values returned in Sheet 1 for C2, C3, and C4
C2 = 0 (Because it is greater than or equal to 0, and less than 80 for the Apple column in sheet 2)
C3 = 2 (Because it is greater than or equal to 120, and less than 140 for the Banana column in sheet 2)
C4 = 3 (Because it is greater than or equal to 160 in the Orange column of sheet 2)
I am looking for a formula that I can fill down column C in sheet 1. Note that the weight value will never be less than 0.
Sheet 1
Sheet 2
Thanks for the help!
For example, I need the following values returned in Sheet 1 for C2, C3, and C4
C2 = 0 (Because it is greater than or equal to 0, and less than 80 for the Apple column in sheet 2)
C3 = 2 (Because it is greater than or equal to 120, and less than 140 for the Banana column in sheet 2)
C4 = 3 (Because it is greater than or equal to 160 in the Orange column of sheet 2)
I am looking for a formula that I can fill down column C in sheet 1. Note that the weight value will never be less than 0.
Sheet 1
Fruit | Weight | Rank |
Apple | 70 | |
Banana | 120 | |
Orange | 170 |
Sheet 2
Rank | Apple | Banana | Orange |
3 | 120 | 140 | 160 |
2 | 100 | 120 | 140 |
1 | 80 | 100 | 120 |
0 | 0 | 0 | 0 |
Thanks for the help!