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.
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
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))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,481
Messages
5,596,393
Members
414,063
Latest member
N_Bates

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
Top