Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Series - IP Addresses 1

Status
Not open for further replies.

KCWong

Technical User
May 19, 2003
18
US
You know how you can populate cels in a series by dragging the lower right-hand corner of a cel downwards? And if you have a unique series, you can type in about 3-5 cels, select them and then drag down? Well, trying to do with this IP Addresses, but in the third octet, not the last one. So what I want is: 123.45.600.0, 123.45.601.0, 123.45.602.0, etc. Any ideas on how to do this (besides removing the last octet?) I messed a LITTLE with formulas, but math ones weren't doing me any good. Thanks!
 
Make a list of 600-whatever then do an ="123.45."&A1".0" then copy down

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
need another & in there:

="123.45."&A1&".0"

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
I probably did something wrong, but I keep getting lists of 123.45.123.45.600.0.0, 123.45.123.45.600.1.0, 123.45.123.45.600.2.0.... so it's close, but I'm probably executing badly.
 
Just put the number 600 in a1, not 123.45.600

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Hi KCWong:

Let us say your starting IP Address is in cell A1, then one way is to use the following formula in cell A2 and drag it down ...

Code:
=LEFT(A1,LEN(A1)-5)&TEXT(600+ROWS($1:1),"0.0")

Depending upon what you are working with, the formula can be simplified.

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
 
Oops - should've updated. I used mharroff's suggestion, as it was simple and my little mind could do it and manipulate it easily to fit my needs. Worked like a charm. Still puzzling over the others - am learning a lot. Thanks to all!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top