# Help with OR formula

#### Cliffork

##### New Member
Hi guys,

Meter Repair Compilation File -Template.xlsm
B
3Customer 1
4REMINDER: Ship on our account with 2-day shipping
Customer Info
Cell Formulas
RangeFormula
B4B4=IF(ISNUMBER(SEARCH("Customer 1",B3)),"REMINDER: Ship on our account with 2-day shipping","")

I have a set of cells that I've shown above for reference. The first lists what customer's equipment I am currently working on. The second is on a later sheet, and if it is "Customer 1" in my customer cell, it placed a note to remind me they have specific shipping instructions.

I now have a second customer that is requesting something specific, and I would like to change this into something like an OR function, that says "if Customer 1, note 1. if Customer 2, note 2." But I cannot seem to get an OR function to work this way, I keep getting errors. Either I'm misunderstanding how OR functions should be written, or their purpose in general. Help?

### Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

#### Fluff

##### MrExcel MVP, Moderator
Excel Formula:
``=IF(B3="Customer 1","REMINDER: Ship on our account with 2-day shipping",IF(B3="Customer 2","What do you want to say?",""))``

#### Cliffork

##### New Member
Excel Formula:
``=IF(B3="Customer 1","REMINDER: Ship on our account with 2-day shipping",IF(B3="Customer 2","What do you want to say?",""))``
That works great! Written much cleaner than my original as well, thank you!

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
2
Views
284
Replies
2
Views
721
Replies
65
Views
1K
Replies
2
Views
206
Replies
1
Views
140

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,569
Messages
5,770,908
Members
425,651
Latest member
Mark Cashin

### 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.

### Which adblocker are you using?

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

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