Solved

Excel Search applied to a URL

Posted on 2014-03-25
3
281 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
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

803 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