Forum Discussion

ZachCrowley's avatar
ZachCrowley
Copper Contributor
Oct 06, 2022
Solved

Variant Pricing - VLOOKUP

Hi Team,

 

Currently updating old pricing from database between two systems. From getting a dump of product codes and current pricing it doesn't include colour options just the base product code. Different product colours have different prices. E.g. Chrome - $100, Black - $125 and Brass $175

 

How can I VLOOKUP the code to get new price and if it returns false check if -BLK, -SB, -BN is at the end of the code and add the additional cost to the price.

 

Is this even possible?

 

Example of existing:

CODEPRICEVLOOKUP
SRP1038-CP$879$879
SRP1038-BL$939N/A
SRP1038-SB$989 N/A

4 Replies