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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,218,909
Messages
6,145,166
Members
450,592
Latest member
Boulder127

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