Solved

Excel Formula - certain part of string

Posted on 2016-10-12
2
50 Views
Last Modified: 2016-10-12
I am trying to use a formula, that looks at a string and search for a certain word, but I want to only search after the last "-"

for example

This would return a true statement - test-test123-test-test123  as test123 is the last part of text

This would return a false statement - test-test-test123-test456 as test456 is the last part of the text

Any suggestions on how i can accomplish this ?
0
Comment
Question by:dkilby
2 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 500 total points
ID: 41840717
Something like this:

=NOT(ISERROR(FIND(B2, A2, FIND("~", SUBSTITUTE(A2, "-", "~", LEN(A2)-LEN(SUBSTITUTE(A2, "-", "")))))))

Open in new window


where your search term is in B2 and your string to be searched is in A2.
0
 

Author Closing Comment

by:dkilby
ID: 41840810
thank you
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question