+ Reply to Thread
Results 1 to 4 of 4

Remove last number from IP Address Excel

  1. #1
    Registered User
    Join Date
    01-16-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Remove last number from IP Address Excel

    Hi,

    I wonder if someone could help?

    I need to remove the last number from a list of IP Addresses in an excel spreadsheet e.g:

    10.1.11.12
    10.19.11.23
    10.22.23.202
    10.2.3.7

    to

    10.1.11
    10.19.11
    10.22.23
    10.2.3

    I have tried using =RIGHT(A1,FIND(".",A1)-1) but this just leaves me with the number I dont need, any help would be great

    Cheers

    Andy
    Last edited by sismeya; 01-16-2011 at 05:59 AM. Reason: Solved

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Remove last number from IP Address Excel

    Maybe this:

    =SUBSTITUTE(LEFT(SUBSTITUTE(A1, ".", REPT(" ", 100), 3), 100), " ", "")

  3. #3
    Registered User
    Join Date
    01-16-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Remove last number from IP Address Excel

    Thank you so much works perfectly you just saved me hours of work !!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Remove last number from IP Address Excel

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1