?
Solved

Excel Search applied to a URL

Posted on 2014-03-25
3
Medium Priority
?
293 Views
Last Modified: 2014-03-25
I am attempting to search this URL "http://image.its.nv.gov:8082/WME_-_I580_at_I80_N_E_/image" to trim a portion of the location information.  I want to remove "http://image.its.nv.gov:8082/" and "/image" to obtain the "WME_-_I580_at_I80_N_E_" location information.  

I developed the following formula:  "=MID(A1,SEARCH("/",A1,8)+1,SEARCH("/image",A1)-SEARCH("/",A1,8)-1)"

This appears to work with my other locations such "http://lexus8.nvfast.org:8082/WME_-_I-15_SB_N_of_Primm/image" but does not work with anything starting with "http://image.its.nv.gov:8082/WME_-_I580_at_I80_N_E_/image".  I believe the problem is with the double "/image" in the URL.  

Sample URLS:  

http://image.its.nv.gov:8082/WME_-_I580_at_I80_N_E_/image
http://image.its.nv.gov:8082/WME_-_I580_at_I80_S_W_/image
http://image.its.nv.gov:8082/WME_-_I580_at_Kietzke_Lane/image
http://image.its.nv.gov:8082/WME_-_I580_at_Glendale_Ave/image
http://lexus6.nvfast.org:8083/WME_-_Eastern_and_Flamingo/image
http://lexus6.nvfast.org:8083/WME_-_Eastern_and_Tropicana_/image
http://lexus6.nvfast.org:8083/WME_-_Eastern_and_Sunset/image
http://lexus6.nvfast.org:8083/WME_-_Russell_and_Paradise/image

Current Excel Formula:  =MID(A1,SEARCH("/",A1,8)+1,SEARCH("/image",A1)-SEARCH("/",A1,8)-1)

Desired output:

WME_-_I580_at_I80_N_E
WME_-_I580_at_I80_S_W_
WME_-_I580_at_Kietzke_Lane
WME_-_I580_at_Glendale_Ave
WME_-_Eastern_and_Flamingo
WME_-_Eastern_and_Tropicana_
WME_-_Eastern_and_Sunset
WME_-_Russell_and_Paradise

Any help would be appreciated?
0
Comment
Question by:Israel Anthony Lopez
[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
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 2000 total points
ID: 39954374
Try

=MID(LEFT(A1,LEN(A1)-6),1+FIND("/",A1,8),LEN(A1))
0
 
LVL 1

Author Closing Comment

by:Israel Anthony Lopez
ID: 39954381
Great job!  This resolved my issue.
0
 
LVL 39

Expert Comment

by:nutsch
ID: 39954382
Glad to help.

Thomas
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Six Sigma Control Plans

771 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