#1   Report Post  
Posted to microsoft.public.excel.misc
Josh
 
Posts: n/a
Default IP Trimming

Hello,
Does anyone have a good formula to trim an IP Address down to its first
three octets? For example, Starting with "192.168.1.105" and go to
"192.168.1." Any help would be much appreciated.
Thanks,
Josh

  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default IP Trimming

Try the following formula, where your IP address is in A1.

=LEFT(A1,FIND(".",A1,FIND(".",A1,FIND(".",A1,1)+1) +1)-1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Josh" wrote in message
oups.com...
Hello,
Does anyone have a good formula to trim an IP Address down to
its first
three octets? For example, Starting with "192.168.1.105" and
go to
"192.168.1." Any help would be much appreciated.
Thanks,
Josh



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trimming a cell down to 256 Characters method373 Excel Discussion (Misc queries) 2 February 12th 06 03:59 PM
Grid column display text trimming ExcellUser Excel Discussion (Misc queries) 0 December 13th 05 06:21 PM
trimming blank cells St. Matthew Excel Worksheet Functions 3 April 29th 05 04:20 AM
Text to Columns in excel for delimited files - allow trimming opt. D. Young New Users to Excel 1 April 25th 05 06:06 PM
Trimming Spreadsheet. How to get excel to recognize only used spa Mark Excel Discussion (Misc queries) 1 April 1st 05 03:50 PM


All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"