I am new to the forum and have been struggling to figure out how to rank the cheapest price by location and product. Essentially, I am trying to identify which supplier has the cheapest price for a specific location and product and rank that grouping by the cheapest price. I am not good at VB and would like a formula to calculate this. Please help.
<colgroup><col span="4" style="text-align: left; "><col style="text-align: left; "></colgroup><tbody>
</tbody>
Supplier | Location | Product | Price | Desired Results |
Supplier 1 | Location 1 | Product 1 | 2.8177 | 2 |
Supplier 2 | Location 1 | Product 1 | 2.8292 | 4 |
Supplier 3 | Location 1 | Product 1 | 2.812 | 1 |
Supplier 4 | Location 1 | Product 1 | 2.82 | 3 |
Supplier 5 | Location 1 | Product 1 | 2.8364 | 5 |
Supplier 1 | Location 2 | Product 1 | 2.8675 | 3 |
Supplier 2 | Location 2 | Product 1 | 2.972 | 4 |
Supplier 3 | Location 2 | Product 1 | 2.972 | 4 |
Supplier 4 | Location 2 | Product 1 | 3.0185 | 1 |
Supplier 5 | Location 2 | Product 1 | 3.172 | 2 |
Supplier 1 | Location 3 | Product 1 | 3.0785 | 4 |
Supplier 2 | Location 3 | Product 1 | 3.1685 | 5 |
Supplier 3 | Location 3 | Product 1 | 2.3359 | 2 |
Supplier 4 | Location 3 | Product 1 | 2.5 | 3 |
Supplier 5 | Location 3 | Product 1 | 2.184 | 1 |
Supplier 1 | Location 1 | Product 2 | 2.8001 | 1 |
Supplier 2 | Location 1 | Product 2 | 2.8315 | 2 |
Supplier 3 | Location 1 | Product 2 | 2.836 | 3 |
Supplier 4 | Location 1 | Product 2 | 2.8381 | 4 |
Supplier 5 | Location 1 | Product 2 | 2.852 | 5 |
Supplier 1 | Location 2 | Product 2 | 2.8631 | 4 |
Supplier 2 | Location 2 | Product 2 | 2.883 | 5 |
Supplier 3 | Location 2 | Product 2 | 3.0185 | 1 |
Supplier 4 | Location 2 | Product 2 | 3.0406 | 3 |
Supplier 5 | Location 2 | Product 2 | 3.0385 | 2 |
Supplier 1 | Location 3 | Product 2 | 2.8582 | 1 |
Supplier 2 | Location 3 | Product 2 | 2.869 | 2 |
Supplier 3 | Location 3 | Product 2 | 2.8996 | 3 |
Supplier 4 | Location 3 | Product 2 | 2.901 | 4 |
Supplier 5 | Location 3 | Product 2 | 2.9041 | 5 |
Supplier 1 | Location 1 | Product 3 | 3.003 | 1 |
Supplier 2 | Location 1 | Product 3 | 3.0785 | 2 |
Supplier 3 | Location 1 | Product 3 | 3.263 | 4 |
Supplier 4 | Location 1 | Product 3 | 3.1685 | 3 |
Supplier 5 | Location 1 | Product 3 | 2.9279 | 5 |
Supplier 1 | Location 2 | Product 3 | 2.9365 | 5 |
Supplier 2 | Location 2 | Product 3 | 2.8682 | 4 |
Supplier 3 | Location 2 | Product 3 | 3.037 | 1 |
Supplier 4 | Location 2 | Product 3 | 3.0377 | 2 |
Supplier 5 | Location 2 | Product 3 | 3.0637 | 3 |
Supplier 1 | Location 3 | Product 3 | 3.1087 | 3 |
Supplier 2 | Location 3 | Product 3 | 3.14 | 4 |
Supplier 3 | Location 3 | Product 3 | 3.208 | 5 |
Supplier 4 | Location 3 | Product 3 | 2.704 | 1 |
Supplier 5 | Location 3 | Product 3 | 2.7049 | 2 |
<colgroup><col span="4" style="text-align: left; "><col style="text-align: left; "></colgroup><tbody>
</tbody>