+ Reply to Thread
Results 1 to 5 of 5

How can i add with IP Addresses......????

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    How can i add with IP Addresses......????

    Hi All,

    I just wondered if it would be possible to add to an ip address.

    e.g: In Cell A1 i have an ip address - 10.10.10.100
    How would i add 2 to it - 10.10.10.102 and display it in A2
    And vice versa - remove 1 from 10.10.10.103 and display it in A3

    Your help is much appreciated.

    Craig

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

    Re: How can i add with IP Addresses......????

    Where is stored criteria how much to add: +2, -1...

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How can i add with IP Addresses......????

    Try

    =LEFT(A1,FIND(CHAR(7),SUBSTITUTE(A1,".",CHAR(7),3)))&RIGHT(A1,LEN(A1)-FIND(CHAR(7),SUBSTITUTE(A1,".",CHAR(7),3)))+2

    Change the +2 to however much you want to offset it, +2 -1 etc
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    Re: How can i add with IP Addresses......????

    Thanky you - works like a dream.....

    Craig

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: How can i add with IP Addresses......????

    There is a small flaw, as the last bit may not exceed 255 so perhaps add =min(255,SPK formula)

+ 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