explosive_duck
New Member
- Joined
- Jul 28, 2017
- Messages
- 6
Hi,
I am trying to find a formula to search for a word and then check if a number is within a range and then bring back the corresponding value.
As an example:
I have the below table of information below
[TABLE="width: 256"]
<colgroup><col width="64" style="width:48pt"> <col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl69, width: 64"]CATEGORY[/TD]
[TD="class: xl70, width: 64"]MIN[/TD]
[TD="class: xl70, width: 64"]MAX[/TD]
[TD="class: xl70, width: 64"]TARGETS[/TD]
[/TR]
[TR]
[TD="class: xl66"]T-SHIRT[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl67"]2[/TD]
[/TR]
[TR]
[TD="class: xl66"]T-SHIRT[/TD]
[TD="class: xl67"]6[/TD]
[TD="class: xl67"]16[/TD]
[TD="class: xl67"]4[/TD]
[/TR]
[TR]
[TD="class: xl66"]SHIRT[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl67"]4[/TD]
[TD="class: xl67"]2[/TD]
[/TR]
[TR]
[TD="class: xl66"]SHIRT[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl67"]20[/TD]
[TD="class: xl67"]3[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl67"]4[/TD]
[TD="class: xl67"]2[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl67"]7[/TD]
[TD="class: xl67"]3[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl67"]8[/TD]
[TD="class: xl67"]25[/TD]
[TD="class: xl67"]4[/TD]
[/TR]
</tbody>[/TABLE]
And I have to find the below criteria below and fill in the corresponding target column (?)
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl68, width: 64"]CATEGORY[/TD]
[TD="class: xl68, width: 64"]ORDER[/TD]
[TD="class: xl68, width: 64"]TARGET[/TD]
[/TR]
[TR]
[TD="class: xl66"]T-SHIRT[/TD]
[TD="class: xl66"]3[/TD]
[TD="class: xl66"]?[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"]?[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"]?[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"] [/TD]
[/TR]
</tbody>[/TABLE]
If anyone can help me with the below then that would be great.
Thanks,
I am trying to find a formula to search for a word and then check if a number is within a range and then bring back the corresponding value.
As an example:
I have the below table of information below
[TABLE="width: 256"]
<colgroup><col width="64" style="width:48pt"> <col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl69, width: 64"]CATEGORY[/TD]
[TD="class: xl70, width: 64"]MIN[/TD]
[TD="class: xl70, width: 64"]MAX[/TD]
[TD="class: xl70, width: 64"]TARGETS[/TD]
[/TR]
[TR]
[TD="class: xl66"]T-SHIRT[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl67"]2[/TD]
[/TR]
[TR]
[TD="class: xl66"]T-SHIRT[/TD]
[TD="class: xl67"]6[/TD]
[TD="class: xl67"]16[/TD]
[TD="class: xl67"]4[/TD]
[/TR]
[TR]
[TD="class: xl66"]SHIRT[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl67"]4[/TD]
[TD="class: xl67"]2[/TD]
[/TR]
[TR]
[TD="class: xl66"]SHIRT[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl67"]20[/TD]
[TD="class: xl67"]3[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl67"]1[/TD]
[TD="class: xl67"]4[/TD]
[TD="class: xl67"]2[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl67"]5[/TD]
[TD="class: xl67"]7[/TD]
[TD="class: xl67"]3[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl67"]8[/TD]
[TD="class: xl67"]25[/TD]
[TD="class: xl67"]4[/TD]
[/TR]
</tbody>[/TABLE]
And I have to find the below criteria below and fill in the corresponding target column (?)
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl68, width: 64"]CATEGORY[/TD]
[TD="class: xl68, width: 64"]ORDER[/TD]
[TD="class: xl68, width: 64"]TARGET[/TD]
[/TR]
[TR]
[TD="class: xl66"]T-SHIRT[/TD]
[TD="class: xl66"]3[/TD]
[TD="class: xl66"]?[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"]?[/TD]
[/TR]
[TR]
[TD="class: xl66"]JEANS[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"]?[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"] [/TD]
[/TR]
</tbody>[/TABLE]
If anyone can help me with the below then that would be great.
Thanks,