Excel – IP Address Formula for ‘Auto fill’

KB ID 0000928 

Problem

I got asked this week if I know how to do this, a colleague was doing a spreadsheet, and needed to quickly put in IP addresses. The Problem is if you use ‘Auto Fill’ to continue your IP addresses, it does not behave quite like you would expect.

ip affress excel auto fill

Solution

A quick search got me most of the way there, but the solution is different depending on which ‘octet’ of the IP address you want to increase.

excel increment ip addresses

So simply change the figures in red below, drop the formula into a cell on your spreadsheet then use the auto fill option.

Excel IP Addresses Increment the First Octet

=””&ROWS($A$1:A10)&”.1.1.0

Excel IP Addresses Increment the Second Octet

=”10.“&ROWS($A$1:A1)&”.1.1

Excel IP Addresses Increment the Third Octet

=”10.1.“&ROWS($A$1:A1)&”.1

Excel IP Addresses Increment the Fourth Octet

=”10.1.1.“&ROWS($A$1:A1)

 

 

Related Articles, References, Credits, or External Links

Excel: Calculate Cost, Margin, Sell Price

Excel – Creating a Dropdown Box ‘From data on another sheet’

Author: Migrated

Share This Post On