Creating an exception price list

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?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I've done something similar.
I used a VLOOKUP to lookup a second column instead of the first column? That depended on your test like yours above.

HTH
 
Last edited:
Upvote 0
I thought about that, but I would have to enter each alternate price on every applicable line (500+) for every customer. Every time the price list database updated I'd have to do it again.
 
Upvote 0
I thought about that, but I would have to enter each alternate price on every applicable line (500+) for every customer. Every time the price list database updated I'd have to do it again.

Wouldn't the alternative price change anyway?
 
Upvote 0
Wouldn't the alternative price change anyway?

The issue isn't the prices changing, it's that quantity and order of the items changes and the row that they're on doesn't necessarily stay the same. Every line of exception prices would have to be double checked every time it updated and the potential for error would be too great.
 
Upvote 0
So what if you held the exception prices in a separate table, using the item as a key.?
That way it would not matter what order they were in?
Also you would only need to change the exception prices that need to be changed?, some might stay the same?

I must admit I'd approach this from a database aspect.
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top