coding arrays to change value if promo is selected

PritiOne

Active Member
Joined
Jun 2, 2004
Messages
357
Hello all.

I have a complicated situation at hand and need help in producing a final product.

Situation:

I have a promo running and if a customer is eligible, he would get certain items on the product list at 50% off. However, I cannot change the actual prices on the product list b/s if the customer does not qualify for the promo he's pay list price.

These products are not grouped on the price list (I cannot easily group them into a named category). Unless you can help me with that as well.

On the input sheet I have a drop down box that Sales will use to choose this promo. Once he does, I need the magic to happen...

Any suggestions? If I can do this using code - it would be preferred. Otherwise I am open to formulas as well.

Thanks in advance for your help!!!

P
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
One suggestion would be to link your dropdown box to a cell, then have item cost = listprice*if(isnumber(match(linkedcell, promolist,0)),0.5,1)
 
Upvote 0
Thanks for the insight - but the dropdown isn't a place to link to the cells - I don't think. It's a place to activate code (as I am imagining it...)
 
Upvote 0
Quite possibly - I am not fully understanding the methodology that would have to be coded for this to work???
 
Upvote 0
Hi,


How did you create the ComboBox? What type is it? How is it popuulated? Where does the data come from? What cell(s) are you wanting to use the value of it? Can you post an example of your worksheet?
 
Upvote 0
It's a drop down validation list. List is comprised of 3 different promos we are going to run. I am starting with one and going to be building from there.

On a different spreadsheet I have a quote sheet that pulls infrom from a price sheet (another sheet in the workbook) The price per product line item is pulled from a Vlookup of the product number type in off the price sheet.

If program of 50% off certain items is selected initially, on the quote sheet the prices should reflect 50% off those products that are part of the program.

However - on the price sheet the products are spread out, (I can't figure out a way to connect them easily...) My initial formula, that works is:

=IF(PromoPricing?="(#96)",IF(ISNUMBER(MATCH(NewProdList,96List,0)),0.5,1)*IF(S19="",0,VLOOKUP($S19,ProductTable,TERMCODE,0)),IF(S19="",0,VLOOKUP($S19,ProductTable,TERMCODE,0)))

But I have to get tricky to add the logic to fit all the programs.

You'll notice that I did type in the list of promo products (96List) for this promo, that's b/c there's only about 10, for the other promo, there are way too many to actually type in and update as product numbers change.

Hope I am making sense here... Thanks!
 
Upvote 0
We would need to see a posted example of your spreadsheet. Try posting some examples using the HTML Maker.
 
Upvote 0

Forum statistics

Threads
1,203,064
Messages
6,053,320
Members
444,653
Latest member
Curdood

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