IF then statement

mellie33

New Member
Joined
May 10, 2019
Messages
2
Hi

I am trying to do an IF then statement. I have a list of items that if a cell contains I want it to say Deduct or no deduct, no matter what I try the formula only returns No Deduct. The formula is listed below:

=IF(OR(J876="EXTRA BUNDLING CHARG",J876="SPECIAL PACKAGING", J876="COMBO GASKET TOOL",J876="CUSTOM BUNDLING CHAR", J876="PANEL BREAK",J876="PANEL BREAK BLADE TE",J876="PANEL BREAK BALDE V", J876="SPECIAL BUNDLING CHA",J876="BUNDLING CHARGE"),"DEDUCT","No Deduct")

Any thoughts on what I could be doing wrong?

Thanks,
Melanie
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Make sure that J876 is exactly the same was what you have in your formula. If there are extra spaces or non printing characters then you will not get a match.
 
Upvote 0
Check the content of J876 and you can also reduce the formula a bit:

=IF(J876={"EXTRA BUNDLING CHARG","SPECIAL PACKAGING","COMBO GASKET TOOL","CUSTOM BUNDLING CHAR","PANEL BREAK","PANEL BREAK BLADE TE","PANEL BREAK BALDE V","SPECIAL BUNDLING CHA","BUNDLING CHARGE"},"DEDUCT","No Deduct")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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