Solved

Excel Search applied to a URL

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

730 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