ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I extract a string from an IP address in Excel? (https://www.excelbanter.com/excel-discussion-misc-queries/255184-how-do-i-extract-string-ip-address-excel.html)

mardoh

How do I extract a string from an IP address in Excel?
 
I'm trying to extract the first 3 numbers from an IP address e.g.
10.123.11.250 to show it as 10.123.11 Would anyone know of a formula for
this please?

Don Guillett[_2_]

How do I extract a string from an IP address in Excel?
 
One way
=LEFT(J1,FIND(".",J1,FIND(".",J1,FIND(".",J1)+1)+1 )-1)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"mardoh" wrote in message
...
I'm trying to extract the first 3 numbers from an IP address e.g.
10.123.11.250 to show it as 10.123.11 Would anyone know of a formula for
this please?



mardoh

How do I extract a string from an IP address in Excel?
 
Hi Don,

Thanks a million! Brilliant.

Maria

"Don Guillett" wrote:

One way
=LEFT(J1,FIND(".",J1,FIND(".",J1,FIND(".",J1)+1)+1 )-1)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"mardoh" wrote in message
...
I'm trying to extract the first 3 numbers from an IP address e.g.
10.123.11.250 to show it as 10.123.11 Would anyone know of a formula for
this please?


.



All times are GMT +1. The time now is 09:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com