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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Darren Bartrup

Well-known Member
Joined
Mar 13, 2006
Messages
1,296
Office Version
  1. 365
Platform
  1. Windows
Have a look at the Search function (not case sensitive) or Find function (case sensitive).

=SEARCH("Trust","National Trust")
=FIND("Trust","National Trust")
 

EIMS

New Member
Joined
Sep 27, 2006
Messages
8
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?
 

Krishnakumar

Well-known Member
Joined
Feb 28, 2003
Messages
2,615
Hi,

=IF(SUMPRODUCT(--ISNUMBER(SEARCH({"trust","nhs","college"},B2))),"Public Sector","")

HTH
 

Forum statistics

Threads
1,171,273
Messages
5,874,777
Members
433,071
Latest member
llokjj

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