Help with OR formula

Cliffork

New Member
Joined
Feb 12, 2020
Messages
16
Office Version
  1. 365
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
Joined
Jun 12, 2014
Messages
68,339
Office Version
  1. 365
Platform
  1. Windows
How about
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?",""))
 
Solution

Cliffork

New Member
Joined
Feb 12, 2020
Messages
16
Office Version
  1. 365
How about
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
Joined
Jun 12, 2014
Messages
68,339
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 
Master Excel Bundle

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.

Forum statistics

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