Solved

Extracting Text within 2 Symbols in Excel

Posted on 2016-11-12
5
71 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 20

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 20

Expert Comment

by:Roy Cox
ID: 41885124
Pleased to help.
0
 
LVL 20

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
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.

626 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