I am looking for a formula or vba to find the cost for a single item that has data on 1-3 rows of price plan data. Then it would need to return the item number with the lowest cost and plan.
Test Page1.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
2 | Formula picks the best cost for each item and lists it on the right side | ||||||||
3 | |||||||||
4 | Raw Data | After formula is applied | |||||||
5 | Stock Number | Cost | Price Plan | Stock Number | Cost | Price Plan | |||
6 | LEO74541 | 4.85 | GL8 | LEO74541 | 4.35 | 17A | |||
7 | LEO74541 | 4.35 | 17A | LEO76310ST | 57.45 | GL8 | |||
8 | LEO76310ST | 57.45 | GL8 | LEO76350ST | 55.01 | 17A | |||
9 | LEO76350ST | 64.55 | GL8 | LEO76365ST | 60.71 | W0I | |||
10 | LEO76350ST | 55.01 | 17A | LEO77106 | 3.28 | W0I | |||
11 | LEO76365ST | 108.92 | GL8 | ||||||
12 | LEO76365ST | 60.71 | W0I | ||||||
13 | LEO77106 | 4.78 | 17A | ||||||
14 | LEO77106 | 3.28 | W0I | ||||||
15 | LEO77106 | 5.71 | GL8 | ||||||
Sheet1 |