scottlarock
Board Regular
- Joined
- Apr 10, 2009
- Messages
- 102
Hello,
I have been trying to get an answer to this, I'll try again.
I have 3 product types in column F, "level 1", "level 2", "level 3".
If, there is more than one product type sharing the same country (C) and Cust type (B), and "level 1" price is higher than either "level 2" or "level 3",
--> then "level 1" price should be 2% less than "level 2" (if there is such a product sharing the same country & cust type), and 4% less than "level 3" (if there is such a product sharing the same country & cust type).
Similarly, if there is a "level 2" with a higher price than a "level 3" within the same country (C) & cust type (B),
--> then "level 2" price should be 2% less than "level 3".
In this example, Z24 should be 4% less than Z26.
Any clue what the perfect formula would look like ? :°)
[TABLE="class: cms_table_cms_table"]
<TBODY>[TR]
[TD="class: cms_table_cms_table_xl96"][/TD]
[TD="class: cms_table_cms_table_xl96, width: 111, bgcolor: #404040"]A
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 111, bgcolor: #404040"]B
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 86, bgcolor: #404040"]C
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 80, bgcolor: #404040"]F
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 78, bgcolor: #404040"]X
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 85, bgcolor: #404040"]Y
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 129, bgcolor: #404040"]Z
[/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]1
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 111, bgcolor: #4bacc6"]Region
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 111, bgcolor: #4bacc6"]Cust Type
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 86, bgcolor: #4bacc6"]Country
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 80, bgcolor: #4bacc6"]Product
[/TD]
[TD="class: cms_table_cms_table_xl90, width: 78, bgcolor: #ebf1de"]Price
[/TD]
[TD="class: cms_table_cms_table_xl90, width: 85, bgcolor: #ebf1de"]Quantity
[/TD]
[TD="class: cms_table_cms_table_xl91, width: 129, bgcolor: #ebf1de"]Hypothetical D Price
[/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]24
[/TD]
[TD="bgcolor: transparent"]Reg 1
[/TD]
[TD="class: cms_table_cms_table_xl88, bgcolor: transparent"]Hosp
[/TD]
[TD="bgcolor: transparent"]Cntry 1
[/TD]
[TD="class: cms_table_cms_table_xl95, bgcolor: #ffffcc"]level 1
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]920
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]88
[/TD]
[TD="class: cms_table_cms_table_xl93, bgcolor: transparent"]1,058.2
[/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]25
[/TD]
[TD="bgcolor: transparent"]Reg 1
[/TD]
[TD="class: cms_table_cms_table_xl88, bgcolor: transparent"]Hosp
[/TD]
[TD="bgcolor: transparent"]Cntry 1
[/TD]
[TD="class: cms_table_cms_table_xl95, bgcolor: #ffffcc"]level 2
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"][/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]2
[/TD]
[TD="class: cms_table_cms_table_xl93, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]26
[/TD]
[TD="bgcolor: transparent"]Reg 1
[/TD]
[TD="class: cms_table_cms_table_xl88, bgcolor: transparent"]Hosp
[/TD]
[TD="bgcolor: transparent"]Cntry 1
[/TD]
[TD="class: cms_table_cms_table_xl95, bgcolor: #ffffcc"]level 3
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]1,106
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]0
[/TD]
[TD="class: cms_table_cms_table_xl93, bgcolor: transparent"]1,005.5
[/TD]
[/TR]
</TBODY>[/TABLE]
Tons of thanks in advance,
Scott
I have been trying to get an answer to this, I'll try again.
I have 3 product types in column F, "level 1", "level 2", "level 3".
If, there is more than one product type sharing the same country (C) and Cust type (B), and "level 1" price is higher than either "level 2" or "level 3",
--> then "level 1" price should be 2% less than "level 2" (if there is such a product sharing the same country & cust type), and 4% less than "level 3" (if there is such a product sharing the same country & cust type).
Similarly, if there is a "level 2" with a higher price than a "level 3" within the same country (C) & cust type (B),
--> then "level 2" price should be 2% less than "level 3".
In this example, Z24 should be 4% less than Z26.
Any clue what the perfect formula would look like ? :°)
[TABLE="class: cms_table_cms_table"]
<TBODY>[TR]
[TD="class: cms_table_cms_table_xl96"][/TD]
[TD="class: cms_table_cms_table_xl96, width: 111, bgcolor: #404040"]A
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 111, bgcolor: #404040"]B
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 86, bgcolor: #404040"]C
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 80, bgcolor: #404040"]F
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 78, bgcolor: #404040"]X
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 85, bgcolor: #404040"]Y
[/TD]
[TD="class: cms_table_cms_table_xl96, width: 129, bgcolor: #404040"]Z
[/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]1
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 111, bgcolor: #4bacc6"]Region
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 111, bgcolor: #4bacc6"]Cust Type
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 86, bgcolor: #4bacc6"]Country
[/TD]
[TD="class: cms_table_cms_table_xl89, width: 80, bgcolor: #4bacc6"]Product
[/TD]
[TD="class: cms_table_cms_table_xl90, width: 78, bgcolor: #ebf1de"]Price
[/TD]
[TD="class: cms_table_cms_table_xl90, width: 85, bgcolor: #ebf1de"]Quantity
[/TD]
[TD="class: cms_table_cms_table_xl91, width: 129, bgcolor: #ebf1de"]Hypothetical D Price
[/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]24
[/TD]
[TD="bgcolor: transparent"]Reg 1
[/TD]
[TD="class: cms_table_cms_table_xl88, bgcolor: transparent"]Hosp
[/TD]
[TD="bgcolor: transparent"]Cntry 1
[/TD]
[TD="class: cms_table_cms_table_xl95, bgcolor: #ffffcc"]level 1
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]920
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]88
[/TD]
[TD="class: cms_table_cms_table_xl93, bgcolor: transparent"]1,058.2
[/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]25
[/TD]
[TD="bgcolor: transparent"]Reg 1
[/TD]
[TD="class: cms_table_cms_table_xl88, bgcolor: transparent"]Hosp
[/TD]
[TD="bgcolor: transparent"]Cntry 1
[/TD]
[TD="class: cms_table_cms_table_xl95, bgcolor: #ffffcc"]level 2
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"][/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]2
[/TD]
[TD="class: cms_table_cms_table_xl93, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: cms_table_cms_table_xl96, bgcolor: #404040"]26
[/TD]
[TD="bgcolor: transparent"]Reg 1
[/TD]
[TD="class: cms_table_cms_table_xl88, bgcolor: transparent"]Hosp
[/TD]
[TD="bgcolor: transparent"]Cntry 1
[/TD]
[TD="class: cms_table_cms_table_xl95, bgcolor: #ffffcc"]level 3
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]1,106
[/TD]
[TD="class: cms_table_cms_table_xl94, bgcolor: transparent"]0
[/TD]
[TD="class: cms_table_cms_table_xl93, bgcolor: transparent"]1,005.5
[/TD]
[/TR]
</TBODY>[/TABLE]
Tons of thanks in advance,
Scott