Extract From Cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi:

I have data in the following format:

\\192.100.1.94\documents and settings\user\my documents\file.pst

I want to extract the IP address from this line...ie....192.100.1.94

I guess I am looking for a function that will look for the only instance of
"\\" in the line....and then give me everything to the right (up to the 1st
instance of "\"

Can anyone help

Thanks
Warren Phillips
 
Select the cells and pull-down:

Data > Text to Columns... and tell the wizard to use the backslash as the
separator.

This will split the text into parts.
 
If the format always begins with \\, then =MID(a1,3,FIND("\",a1,3)-3) give
you everything right of that up until the next \ (this will fail if there is
no subsequent \ character!).
 
Everyone:

All these suggestions gave me the excact data I needed.

Thank you for your time in responding
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top