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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,708
Messages
6,126,373
Members
449,311
Latest member
accessbob

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