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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,216,151
Messages
6,129,162
Members
449,489
Latest member
spvclub

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