How do I check whether a keyword is in the cell title and then put in category row if so?

L

Legacy 329151

Guest
TitleCategoryKeyword
Easy PHP CourseCSS
Excel Made EasyJava
The basics of HTMLAndroid
Easy Guide to CSS
Java Mobile Guide
C# Applications Book
Android Mobile Apps

<tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Code:
Dim Title As Range
For Each Title In Range("MyTitles")
    If InStr(Title, "CSS")>0 Then Title.Offset(0, 1) = "CSS"
    If InStr(Title, "Java")>0 Then Title.Offset(0, 1) = "Java"
    If InStr(Title, "Android")>0 Then Title.Offset(0, 1) = "Android"
Next Title
 
Upvote 0
Is this code needed to be added to a macro.

I thought maybe vlookup or match may have been able to do this
 
Upvote 0
Here is a formula option:


Excel 2012
ABCD
1TitleCategoryKeyword
2Easy PHP CourseNot FoundCSS
3Excel Made EasyNot FoundJava
4The basics of HTMLNot FoundAndroid
5Easy Guide to CSSCSS
6Java Mobile GuideJava
7C# Applications BookNot Found
8Android Mobile AppsAndroid
Sheet1
Cell Formulas
RangeFormula
B2=IFERROR(LOOKUP(1,1/COUNTIF(A2,"*"&$D$2:$D$4&"*"),$D$2:$D$4),"Not Found")
 
Upvote 0

Forum statistics

Threads
1,207,391
Messages
6,078,209
Members
446,321
Latest member
thecachingyeti

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