Find words within a text string

morz68

New Member
Joined
May 6, 2012
Messages
32
Hi all, I have googled and not found what I need, so hoping you can help. I have a column of text, somewhere inside the text could be the word 'auth', I need a formula which will find it. Just within an If fx would be good. For instance if the cell contains the word 'auth', put the word Authenticate. This screen grab is not working, maybe I'm using the incorrect fx?

EFC Auth=IF(ISTEXT(A1), "AUTH", "")
EFC Auth Brazil=IF(ISTEXT(A2), "AUTH", "")
EFC Auth=IF(ISTEXT(A3), "AUTH", "")
EFC Not=IF(ISTEXT(A4), "AUTH", "")
EFC Not=IF(ISTEXT(A5), "AUTH", "")
EFC Not=IF(ISTEXT(A6), "AUTH", "")
EFC Auth=IF(ISTEXT(A7), "AUTH", "")
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Power Query Solution

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Added Custom" = Table.AddColumn(Source, "Custom", each if Text.Contains([Column1],"Auth") then "Authenticate" else null)
in
    #"Added Custom"
Column1Custom
EFC AuthAuthenticate
EFC Auth BrazilAuthenticate
EFC AuthAuthenticate
EFC Not
EFC Not
EFC Not
EFC AuthAuthenticate
 
Upvote 0
Power Query Solution

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Added Custom" = Table.AddColumn(Source, "Custom", each if Text.Contains([Column1],"Auth") then "Authenticate" else null)
in
    #"Added Custom"
Column1Custom
EFC AuthAuthenticate
EFC Auth BrazilAuthenticate
EFC AuthAuthenticate
EFC Not
EFC Not
EFC Not
EFC AuthAuthenticate
Thank you so much, bu I wanted a formula (old school) I haven't used PowerQuery, and I need to give the formula to a basic level user. Any ideas?
 
Upvote 0

Forum statistics

Threads
1,215,504
Messages
6,125,185
Members
449,213
Latest member
Kirbito

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