Solved

Excel Search applied to a URL

Posted on 2014-03-25
3
284 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 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