I am trying to set up a formula to show a subsequent IP Address.

  • Thread starter Thread starter jewell
  • Start date Start date
J

jewell

I am trying to set up a formula where i can enter an IP address and have that
the cell below that shows that IP adress + 1. The problem is the decimal
points in the 1 st ip address. It's causing a value error. Any idea how to
do what i'm attempting?
 
jewell said:
I am trying to set up a formula where i can enter an IP address and have that
the cell below that shows that IP adress + 1. The problem is the decimal
points in the 1 st ip address. It's causing a value error. Any idea how to
do what i'm attempting?


With no error checking for valid IP addresses:

=LEFT(SUBSTITUTE(A1,".","*",3),FIND("*",SUBSTITUTE(A1,".","*",3))-1)&
"."&TRIM(RIGHT(SUBSTITUTE(A1,".",REPT(" ",9)),9))+1
 
jewell said:
I am trying to set up a formula where i can enter an IP address and have that
the cell below that shows that IP adress + 1. The problem is the decimal
points in the 1 st ip address. It's causing a value error. Any idea how to
do what i'm attempting?


Shortened version:

=LEFT(A1,FIND("*",SUBSTITUTE(A1,".","*",3))-1)&"."&
TRIM(RIGHT(SUBSTITUTE(A1,".",REPT(" ",9)),9))+1
 
Back
Top