Can I do the following in Excel...???

EIMS

New Member
Joined
Sep 27, 2006
Messages
8
Hi all,

I have a column of company names (B1:B40000) and want to identify in a seperate column (A) which company names include the word "Trust".

I was thinking of a formula much like the following:

=IF(B1="Trust","Public Sector","")

However, this only works where the cell value is exactly "Trust". Is there a way of ammending this so that if the cell value is "National Trust" it is still recognised?

Perhaps something like this?

=IF(B1="*Trust*","Public Sector","")


Thanks everyone!!!
 

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
Have a look at the Search function (not case sensitive) or Find function (case sensitive).

=SEARCH("Trust","National Trust")
=FIND("Trust","National Trust")
 
Upvote 0
Oooh... as that was clearly too easy for you... how about ammending the formula so that it searches for multiple values...

=IF(ISNUMBER(SEARCH("TRUST" or "NHS" or "College",B2)),"Public Sector","")

You get the idea! Is this possible?
 
Upvote 0

Forum statistics

Threads
1,215,428
Messages
6,124,832
Members
449,190
Latest member
rscraig11

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