Home

Search particular word in a phrase

%3CLINGO-SUB%20id%3D%22lingo-sub-772643%22%20slang%3D%22en-US%22%3ESearch%20particular%20word%20in%20a%20phrase%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772643%22%20slang%3D%22en-US%22%3EHi%20Experts%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20trying%20to%20look%20for%20a%20formula%20to%20use%20to%20do%20the%20following%20function%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20In%20a%20given%20column%20to%20search%20for%20a%20specific%20words%20(17%20in%20total)%3CBR%20%2F%3E2.%20Once%20identified%20it%20need%20to%20return%20specific%20value%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-772643%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772650%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20particular%20word%20in%20a%20phrase%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772650%22%20slang%3D%22en-US%22%3EI%20tried%20to%20use%20this%20formula%20i%20found%20in%20one%20of%20the%20groups%20but%20it%20only%20limits%20me%20to%20two%20sets%20of%20text%20i%20need%20to%20search%20and%20identify%2017%20text%20in%20a%20column%20and%20once%20match%20need%20to%20return%20to%20s%20specific%20text%20%3DIFERROR(IF(SEARCH(%22*Sales*%22%2CB3%2C1)%2C%22Sales%22)%2CIF(SEARCH(%22*Arch*%22%2CB3%2C1)%2C%22Architecture%22))%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-773455%22%20slang%3D%22en-US%22%3ERe%3A%20Search%20particular%20word%20in%20a%20phrase%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-773455%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F381767%22%20target%3D%22_blank%22%3E%40Bong9178%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20better%20to%20place%20what%20to%20search%20and%20what%20to%20return%20if%20found%20in%20separate%20helper%20range%20like%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20366px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F124481i9BC63CCE2693A5A9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E(expanding%20on%20all%2017%20values)%3C%2FP%3E%0A%3CP%3EFormula%20in%20C1%20could%20be%20like%3C%2FP%3E%0A%3CPRE%3E%3DIFERROR(INDEX(%24G%241%3A%24G%245%2CMATCH(1%2CINDEX(--ISNUMBER(SEARCH(%22*%22%26amp%3B%24F%241%3A%24F%245%26amp%3B%22*%22%2C%24B1))%2C0)%2C0))%2C%22no%20such%22)%3C%2FPRE%3E%0A%3CP%3Eand%20drag%20it%20down%3C%2FP%3E%3C%2FLINGO-BODY%3E
Bong9178
New Contributor
Hi Experts

I am trying to look for a formula to use to do the following function:

1. In a given column to search for a specific words (17 in total)
2. Once identified it need to return specific value
2 Replies
I tried to use this formula i found in one of the groups but it only limits me to two sets of text i need to search and identify 17 text in a column and once match need to return to s specific text =IFERROR(IF(SEARCH("*Sales*",B3,1),"Sales"),IF(SEARCH("*Arch*",B3,1),"Architecture"))

@Bong9178 

It's better to place what to search and what to return if found in separate helper range like

image.png

(expanding on all 17 values)

Formula in C1 could be like

=IFERROR(INDEX($G$1:$G$5,MATCH(1,INDEX(--ISNUMBER(SEARCH("*"&$F$1:$F$5&"*",$B1)),0),0)),"no such")

and drag it down

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
12 Replies