IosifFlorin
New Member
- Joined
- Jul 1, 2015
- Messages
- 18
Hello! I am trying to write a new function because only with formulas is too complicated and inefficient
Important: the comparison of the prices have to start with the most aggressive band in table 2 (which is the one most to the right, not left).
In CurrentBand i have the some examples of answer
I want to extend the function, this is just and example but the names of the headers are with these specifics, but would be really helpful to get the blueprint which i could expand afterwards
TableProd
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
Banding Table
<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
- i have 2 tables (names below)
- in the TableProd, header Current Band i want to find out where is positioned in the Banding Table (table 2) the Price for a certain Product.
- i am using the tables to make it easier for referencing
Important: the comparison of the prices have to start with the most aggressive band in table 2 (which is the one most to the right, not left).
In CurrentBand i have the some examples of answer
I want to extend the function, this is just and example but the names of the headers are with these specifics, but would be really helpful to get the blueprint which i could expand afterwards
TableProd
ProductCode | Price /Unit | Price /Box | Current Band |
Prod1 | 10 | 50 | Jupiter |
Prod2 | 25 | 125 | Saturn |
Prod3 | 53 | 265 | Between Saturn and Jupiter |
Prod4 | 5 | 25 | < Jupiter |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
Banding Table
ProductCode | Venus /Unit | Mars /Unit | Saturn /Unit | Jupiter /Unit |
Prod1 | 10 | 10 | 10 | 10 |
Prod2 | 50 | 25 | 25 | 20 |
Prod3 | 100 | 75 | 60 | 50 |
Prod4 | 50 | 30 | 20 | 10 |
<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>