Solved

Extracting Text within 2 Symbols in Excel

Posted on 2016-11-12
5
60 Views
Last Modified: 2016-11-13
Hello EE,

I have the following dummy URL: http://www.amazon.com/dp/BPPK0T2MQI/  and i want extract BPPK0T2MQI.  Can someone please help me with an excel formula to extract.

Thanks,
0
Comment
Question by:fb1990
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 19

Accepted Solution

by:
Roy_Cox earned 400 total points
ID: 41884710
Assuming the text is in A1 try

=LEFT(RIGHT(A1,11),10)
0
 
LVL 27

Assisted Solution

by:davorin
davorin earned 100 total points
ID: 41884711
You can try with =right(cell address, number of characters) if the number of extracted characters is always the same.

In your case if url is in A1 cell:
put next formula in B1 cell "=right(A1,11)" . You will get "BPPK0T2MQI/"
and then put next formula in C1 cell "=left(B1,10)" - you will get "BPPK0T2MQI"

https://www.extendoffice.com/documents/excel/3639-excel-extract-part-of-string.html

You could also use text to columns function and select / as column delimiter. You will get wanted strings in 5th column.
0
 
LVL 1

Author Closing Comment

by:fb1990
ID: 41884831
Thanks to both of you.  I can use this for now.  It assumes the value will always be 10 digit. it may be more in the future.
0
 
LVL 19

Expert Comment

by:Roy_Cox
ID: 41885124
Pleased to help.
0
 
LVL 19

Expert Comment

by:Roy_Cox
ID: 41885163
There might be a simpler formula but this allows for varying lengths  of text

=LEFT(MID(RIGHT(A1,LEN(A1)-23),FIND("/",RIGHT(A1,LEN(A1)-22),FIND("/",RIGHT(A1,LEN(A1)-22))+1),1000),LEN(MID(RIGHT(A1,LEN(A1)-23),FIND("/",RIGHT(A1,LEN(A1)-22),FIND("/",RIGHT(A1,LEN(A1)-22))+1),1000))-1)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

732 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