3 IF statements - can't work it out !

TURK

New Member
Joined
Mar 27, 2005
Messages
37
Hi all,

I have one IF statement in column W that eliminates IAIN in column I, as he is not elegable for bonus's, the formuls is;<B>=IF(I2:I33="IAIN",0,F2*0.02)</B> this works fine, but I want to add another IF statement to not count bonus's for SHOP that is also in column I.

To complicate things further, the bonus is only payable if COM exists in column B. How do I go about this ?
01.January.2009.Analysis_TEST.xls
ABCDEFGHIJKLMNOPQRSTUVW
1JobNoStatusCNXCodeActVisitServiceRateTypeCustomerNameInstaller1234567RefNoInvNoPaidOrderNoPaymentOutstanding2%Bonus
253804221COMSP956.62SSANDALLOWAIN156.62 0.001.13
353611220COMIXX100.80ILIDDLEAARON1100.80 0.002.02
453535488CAN0.00IMOHUNAARONX 0.000.00
553572301COMSHV55.58SBEWHAYOWAIN155.58 0.001.11
653553803COMIXX100.80ICHESHIREAARON1100.80 0.002.02
753529816COMSHV55.58SBOUGOURDOWAIN155.58 0.001.11
853802351COMSDS56.45SMCCARTEROWAIN156.45 0.001.13
953804288COMSDW56.45SHOWARDOWAIN156.45 0.001.13
1053523857COMIZ1100.80IEASTAARON1100.80 0.002.02
1153796229COMSDS56.45SPALOMBAOWAIN156.45 0.001.13
1253528899CAN0.00IQUENAULTOFFICEX 0.000.00
1353519749COMIZ1100.80IVIBERTSHOP1100.80 0.002.02
1453792175COMSDW56.45SNOELOWAIN156.45 0.001.13
1553796359COMSPA56.66SROBERTSOWAIN156.66 0.001.13
1653797685COMSPA56.66SJOHNOWAIN156.66 0.001.13
1753367377COMIZ1100.80IBECKIAIN1100.80 0.000.00
1853528252CAN0.00IBUCKLEYOFFICEX 0.000.00
1953640780COMSHD51.57SJOHNSONSHOP151.57 0.001.03
Fri.2
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Looking at your formula, the multi cell range is not necessary, as I think it only ever looks at the first cell, so
Code:
=IF(I2:I33="IAIN",0,F2*0.02)
shoud be
Code:
=IF(I2="IAIN",0,F2*0.02)
If you want to exclude "shop" from this bonus calc, you could use:
Code:
=IF(OR(I2="IAIN",I2="SHOP),0,F2*0.02)
to add the last condition, try:

Code:
=IF(OR(I2="IAIN",I2="SHOP,B2<>"COM"),0,F2*0.02)
 
Upvote 0
Hi,

Check out the table below:

Assuming that you house the values "IAIN" OR "SHOP" in cell K1 and house the value "COM" in cell L1, as per the data you have shown above, the formula is in cell W2:
Book2
ABCDEFGHIJKLMNOPQRSTUVW
1shopcom
2com1000shop20.00
3
Sheet1


Is this what you want ?
 
Upvote 0

Forum statistics

Threads
1,203,203
Messages
6,054,130
Members
444,703
Latest member
pinkyar23

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