Cheeky_Monkey
New Member
- Joined
- Aug 9, 2019
- Messages
- 4
I've tried really hard to find an answer to this problem but cannot find it.
Basically I have an table which is populated as below:
[TABLE="width: 429"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD][/TD]
[TD]Band 1[/TD]
[TD]Band 2[/TD]
[TD]Band 3[/TD]
[TD]Band 4[/TD]
[TD]Band 5[/TD]
[/TR]
[TR]
[TD]Product Group A[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]Product Group B[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Product Group C[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]Product Group D[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD]Product Group E[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[/TR]
</tbody>[/TABLE]
Now I want to find the Band of a particular product based upon its Qty. I have used Match(Criteria, Range, 1) to find the Band for a particular product group. However this works on one line. But my search line will vary depending on the Product group of the item. i could use multiple ifs but I have many more product groups.
What I need to do is identify the product group an item belongs to and then match on that line.
E.g
Item A belongs to Group C and 33 QTY sold = Band 2
Item C belongs to Group E and 33 QTY sold = Band 1
Thanks in advance
Basically I have an table which is populated as below:
[TABLE="width: 429"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD][/TD]
[TD]Band 1[/TD]
[TD]Band 2[/TD]
[TD]Band 3[/TD]
[TD]Band 4[/TD]
[TD]Band 5[/TD]
[/TR]
[TR]
[TD]Product Group A[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]Product Group B[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Product Group C[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]Product Group D[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD]Product Group E[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[/TR]
</tbody>[/TABLE]
Now I want to find the Band of a particular product based upon its Qty. I have used Match(Criteria, Range, 1) to find the Band for a particular product group. However this works on one line. But my search line will vary depending on the Product group of the item. i could use multiple ifs but I have many more product groups.
What I need to do is identify the product group an item belongs to and then match on that line.
E.g
Item A belongs to Group C and 33 QTY sold = Band 2
Item C belongs to Group E and 33 QTY sold = Band 1
Thanks in advance