Solved

Extracting Text within 2 Symbols in Excel

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

Industry Leaders: 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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

734 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