I quite often use the handy subnet calculator here:
http://www.subnet-calculator.com/
Which I find very useful. However, does anyone have details/a link for a version of this that offers similar functionality but is in an excel spreadsheet.
I could then include it in a worksheet and I wouldn't have to keep visiting the website. Also handy if I don't have internet access - which can often be the case when I need it.
The following function (that calls Marcus Mansfield's IPSubnetCalc) will output a network range when given a subnet:
Here's a pretty basic one. It's actually a pretty simple task to create your own.
I've added a new option to calculate the number of available hosts in a network.
Hope it helps.
Rui
I know its an old thread but...
This is a VBA Function for Excel. I'm going to assume you know how to add a VBA Function ( Or Macro etc ), If not I'll hope someone will reply to this thread with a simple How To.
Its very basic, but it does exactly what is says on the tin and works for me.
Input is =IPSubnetCalc(X, YY.YY.YY.YY/ZZ )
X = 1 to 5 - See below for what each option does. Y = IPv4 Address Z = 8 to 32, Excl 31. ( BitMask )
Obviously, the X, Y/Z can be cell references.
Enjoy
Did you specifically want a spreadsheet to calculate subnets? There are plenty of standalone tools to do this. Here for example