ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   I am trying to set up a formula to show a subsequent IP Address. (https://www.excelbanter.com/excel-worksheet-functions/232894-i-am-trying-set-up-formula-show-subsequent-ip-address.html)

jewell

I am trying to set up a formula to show a subsequent IP Address.
 
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?

Glenn

I am trying to set up a formula to show a subsequent IP Address.
 
jewell wrote:
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

Glenn

I am trying to set up a formula to show a subsequent IP Address.
 
jewell wrote:
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

Shane Devenshire[_2_]

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


Please show us what you have and what you want with an example.


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"jewell" wrote:

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?



All times are GMT +1. The time now is 11:45 AM.

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