Formula question

ironsides

Well-known Member
Joined
Aug 12, 2002
Messages
575
I have this formula =IF(A1=”AD”,”T”,””)

In addition to the “AD” I want to add as a condition “BT” or “SM”
so as its scanned down Col A I get a blank for anything other than AD or BT or SM

and get a T when Col A contains AD or BT or SM.

What should the formula be?

Im using Excel 2000.
Thank you
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
Hi,

Try this:

=IF(OR(A1="AD",A1="BT",A1="SM"),"T","")

Should do what you're after.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
or possibly:

=IF(OR(A1={"AD","BT","SM"}),"T","")
 

ironsides

Well-known Member
Joined
Aug 12, 2002
Messages
575
Domski and Hotpepper....both worked perfectly. Will save me hours of toil. Best wishes, Matt
 

Forum statistics

Threads
1,136,305
Messages
5,674,984
Members
419,541
Latest member
freddyboots

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