Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel TCP/IP spreadsheet formula help

We ban external networks fom access to our net and I'm trying to set up
aspreadsheet to help me identify single addresses when I get queries about
if someone is blocked. I've set up a spreqadsheet of the banned networks and
I want to autofill the stat and end address of the sub/super nets. So that
it loooks somewhat like this

Name ,Address , Mask , Start
,End
bantimewarner,207.250.0.0,255.255.0.0,207.250.0.1, 207.250.255.254

bannigeria216,216.133.174.0,255.255.255.0,216.133. 174.1,216.133.174.254





What I need is the formula to get the start and end addresses from the IP
and mask and what format do I set the cells to?




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Excel TCP/IP spreadsheet formula help

Clubsprint wrote:
We ban external networks fom access to our net and I'm trying to set up
aspreadsheet to help me identify single addresses when I get queries about
if someone is blocked. I've set up a spreqadsheet of the banned networks and
I want to autofill the stat and end address of the sub/super nets. So that
it loooks somewhat like this

Name ,Address , Mask , Start
,End
bantimewarner,207.250.0.0,255.255.0.0,207.250.0.1, 207.250.255.254

bannigeria216,216.133.174.0,255.255.255.0,216.133. 174.1,216.133.174.254

What I need is the formula to get the start and end addresses from the IP
and mask and what format do I set the cells to?


If you don't mind using about 30 helper columns here is a kludgy
solution for you:

http://vfdrake.home.comcast.net/file...calculator.xls

This makes heavy use of Harlan Grove's binary math formulae (which can
be viewed he
http://groups.google.com/group/micro...9693728f1559b6
)
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Excel TCP/IP spreadsheet formula help

Hi Clubsprint,

The formula's are as follows:


for start address:

=LEFT(B3,LEN(B3)-1)&1

I just replaced the last digit with "1"

for end address:

=IF(LEN(C3)-LEN(SUBSTITUTE(C3,255,"S"))=4,LEFT(B3,FIND(".",B3, FIND(".",B3)+1))&"255.254",LEFT(B3,FIND(".",B3,FIN D(".",B3,FIND(".",B3)+1)+1))&"254")


please note the following for the formulas to work properly:

Name is in column A
Address is in Column B
Mask is in column C


--
Please click Yes if you like the post.

Kind Regards,
Satti Charvak
Only an Excel Enthusiast


"Clubsprint" wrote:

We ban external networks fom access to our net and I'm trying to set up
aspreadsheet to help me identify single addresses when I get queries about
if someone is blocked. I've set up a spreqadsheet of the banned networks and
I want to autofill the stat and end address of the sub/super nets. So that
it loooks somewhat like this

Name ,Address , Mask , Start
,End
bantimewarner,207.250.0.0,255.255.0.0,207.250.0.1, 207.250.255.254

bannigeria216,216.133.174.0,255.255.255.0,216.133. 174.1,216.133.174.254





What I need is the formula to get the start and end addresses from the IP
and mask and what format do I set the cells to?





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel TCP/IP spreadsheet formula help

Hi Satti
Close, worked for the Cass Cs but fell over whn calculating the As and Bs.
See below result.
Name, Network, Netmask, Start Address, End Address
banmediacom12.214.45.0 12.214.45.0 255.255.255.0 12.214.45.1 12.214.45.254
banasianet121.0.0.0 121.0.0.0 255.0.0.0 121.0.0.1 121.0.0.254
banasianet123.0.0.0 123.0.0.0 255.128.0.0 123.0.0.1 123.0.0.254


"Satti Charvak" wrote in message
...
Hi Clubsprint,

The formula's are as follows:


for start address:

=LEFT(B3,LEN(B3)-1)&1

I just replaced the last digit with "1"

for end address:

=IF(LEN(C3)-LEN(SUBSTITUTE(C3,255,"S"))=4,LEFT(B3,FIND(".",B3, FIND(".",B3)+1))&"255.254",LEFT(B3,FIND(".",B3,FIN D(".",B3,FIND(".",B3)+1)+1))&"254")


please note the following for the formulas to work properly:

Name is in column A
Address is in Column B
Mask is in column C


--
Please click Yes if you like the post.

Kind Regards,
Satti Charvak
Only an Excel Enthusiast


"Clubsprint" wrote:

We ban external networks fom access to our net and I'm trying to set up
aspreadsheet to help me identify single addresses when I get queries
about
if someone is blocked. I've set up a spreqadsheet of the banned networks
and
I want to autofill the stat and end address of the sub/super nets. So
that
it loooks somewhat like this

Name ,Address , Mask , Start
,End
bantimewarner,207.250.0.0,255.255.0.0,207.250.0.1, 207.250.255.254

bannigeria216,216.133.174.0,255.255.255.0,216.133. 174.1,216.133.174.254





What I need is the formula to get the start and end addresses from the IP
and mask and what format do I set the cells to?







  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel TCP/IP spreadsheet formula help

A bit messy but this worked,thanks

"smartin" wrote in message
...
Clubsprint wrote:
We ban external networks fom access to our net and I'm trying to set up
aspreadsheet to help me identify single addresses when I get queries
about if someone is blocked. I've set up a spreqadsheet of the banned
networks and I want to autofill the stat and end address of the sub/super
nets. So that it loooks somewhat like this

Name ,Address , Mask , Start ,End
bantimewarner,207.250.0.0,255.255.0.0,207.250.0.1, 207.250.255.254

bannigeria216,216.133.174.0,255.255.255.0,216.133. 174.1,216.133.174.254

What I need is the formula to get the start and end addresses from the IP
and mask and what format do I set the cells to?


If you don't mind using about 30 helper columns here is a kludgy solution
for you:

http://vfdrake.home.comcast.net/file...calculator.xls

This makes heavy use of Harlan Grove's binary math formulae (which can be
viewed he
http://groups.google.com/group/micro...9693728f1559b6 )





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Excel TCP/IP spreadsheet formula help

Clubsprint wrote:
A bit messy but this worked,thanks


Indeed. A much cleaner approach would be to use VBA functions to parse
the addresses and do the binary math.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Percentage formula in Excel spreadsheet Rick New Users to Excel 5 November 10th 08 04:30 AM
Excel spreadsheet formula Dana Excel Worksheet Functions 2 April 2nd 07 02:03 PM
Urgent - how to set a formula in excel spreadsheet Calculate Date range Excel Worksheet Functions 4 February 20th 06 01:20 PM
formula for debits and credits in EXCEL spreadsheet Stan Gilbert Excel Worksheet Functions 0 September 27th 05 02:24 PM
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? oil_driller Excel Discussion (Misc queries) 1 February 8th 05 09:34 AM


All times are GMT +1. The time now is 12:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"