RockDarkwater
New Member
- Joined
- Dec 17, 2015
- Messages
- 6
Hey all I need some genius,
I've been trying to find a way to swap an exception price with a generic item price for specific customers.
I have two large databases, one with item codes/descriptions/prices (CC8-3465, CC16- 3324, MSO2-1456, etc.), and one with customers (1002 - Customer 1, 3244 - Customer 2, etc.).
The generic item database is regularly updated through a copy and paste from an external program, so the formula can't be there.
I need to figure out a way to define a rule/rules for a discount/alternate item price i.e. OR(Right(itemcode, 4) = "3324", LEFT(itemcode, 2) = "CC") and then build another function that uses the alternate price instead of looking up the generic one when the rule returns TRUE.
I've tried using an EVALUATE UDF to change the text string into a function, but since the cell with the item code is dynamic, I've had to use an OFFSET or INDIRECT function, and the two don't mesh for some reason.
Any ideas?
I've been trying to find a way to swap an exception price with a generic item price for specific customers.
I have two large databases, one with item codes/descriptions/prices (CC8-3465, CC16- 3324, MSO2-1456, etc.), and one with customers (1002 - Customer 1, 3244 - Customer 2, etc.).
The generic item database is regularly updated through a copy and paste from an external program, so the formula can't be there.
I need to figure out a way to define a rule/rules for a discount/alternate item price i.e. OR(Right(itemcode, 4) = "3324", LEFT(itemcode, 2) = "CC") and then build another function that uses the alternate price instead of looking up the generic one when the rule returns TRUE.
I've tried using an EVALUATE UDF to change the text string into a function, but since the cell with the item code is dynamic, I've had to use an OFFSET or INDIRECT function, and the two don't mesh for some reason.
Any ideas?