Solved

Excel Formula - certain part of string

Posted on 2016-10-12
2
32 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article will show you how to use shortcut menus in the Access run-time environment.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

747 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now