Array formula and AND

PritiOne

Active Member
Joined
Jun 2, 2004
Messages
357
I need help with the following formula:

=IF(OR(DealType={3000,"3000Rx","3000 w/ Drawer Choice","3000Rx w/ Drawer Choice"}),IF(PromoPricing?="Crunch Time Promo",IF(VLOOKUP(S19,ProductTable,44,0)="Y",IF(K19="K",(P19+(P19*0.1)),IF(K19="U",(P19+(P19*0.2)))),VLOOKUP(S19,ProductTable,TERMCODE,)),VLOOKUP(S19,ProductTable,TERMCODE,0)),VLOOKUP(S19,ProductTable,TERMCODE,0))

Crteria to meet:

DealType, PromoPricing?, Vlookup resulting in "Y" then perform a ceratin calculation based on "K' or "U"

Else, vlookup(s19,producttable,termcode,false)

Can I use and AND statement for the first 3 conditions? Then, if met, do specific calculation?

If not, can I get help with the above formula, please.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,

Try:

=IF(AND(OR(DealType={3000,"3000Rx","3000 w/ Drawer Choice","3000Rx w/ Drawer Choice"}),PromoPricing?="Crunch Time Promo",VLOOKUP(S19,ProductTable,44,0)="Y"),IF(K19="K",P19+P19*0.1,P19+P19*0.2),VLOOKUP(S19,ProductTable,TERMCODE,0))
 
Upvote 0

Forum statistics

Threads
1,215,753
Messages
6,126,674
Members
449,327
Latest member
John4520

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