maximillianrg
Board Regular
- Joined
- Aug 7, 2014
- Messages
- 75
- Office Version
- 2016
- Platform
- Windows
Hello Excel Masters
=if(ISNUMBER(SEARCH("response",F2)),"response",if(ISNUMBER(SEARCH("resp",F2)),"resp",if(ISNUMBER(SEARCH("narrative",F2)),"narrative",if(ISNUMBER(SEARCH("request",F2)),"request",if(ISNUMBER(SEARCH("production",F2)),"production",if(ISNUMBER(SEARCH("letter",F2)),"letter",if(ISNUMBER(SEARCH("exhibits",F2)),"exhibits",if(ISNUMBER(SEARCH("annex",F2)),"annex",if(ISNUMBER(SEARCH("rfi",F2)),"rfi",if(ISNUMBER(SEARCH("RFI",F2)),"Other"))))))))))
This works great if cell F2 contains 0 or 1 of the keywords but if multiple keywords exist in cell 2 then I need to find a way to return the last keyword in the cell the formula finds.
Example If F2 = C:\Regulatory\Asia\Athens\Response\Submitted\Exhibits\Annex\Approved
The formula would need to return "annex" and not Exhibits or Response
- I have a 9,000 row excel sheet that contains an export of a directory structure
- The below formula searches F2 for 1 of 8 key words and if it finds it, it returns the value of that keyword in cell B2 and if it does not find the value it returns False
- The Keywords are: response, resp, narrative, request, production, letter, exhibits, annex, rfi,
=if(ISNUMBER(SEARCH("response",F2)),"response",if(ISNUMBER(SEARCH("resp",F2)),"resp",if(ISNUMBER(SEARCH("narrative",F2)),"narrative",if(ISNUMBER(SEARCH("request",F2)),"request",if(ISNUMBER(SEARCH("production",F2)),"production",if(ISNUMBER(SEARCH("letter",F2)),"letter",if(ISNUMBER(SEARCH("exhibits",F2)),"exhibits",if(ISNUMBER(SEARCH("annex",F2)),"annex",if(ISNUMBER(SEARCH("rfi",F2)),"rfi",if(ISNUMBER(SEARCH("RFI",F2)),"Other"))))))))))
This works great if cell F2 contains 0 or 1 of the keywords but if multiple keywords exist in cell 2 then I need to find a way to return the last keyword in the cell the formula finds.
Example If F2 = C:\Regulatory\Asia\Athens\Response\Submitted\Exhibits\Annex\Approved
The formula would need to return "annex" and not Exhibits or Response