I am trying to build a spreadsheet that allocates IP addresses and VLANs. We are given an IP range per site and from that we have to allocate the relative VLAN and IP address to suit. We have several hundred (possibly a thousand) sites which have users going into the thousands. To make my life easier I have been trying to come up with something that I can enter the start and end of the allocated range and it autofills to give everything an IP address.
I currently have userforms that transfers data to a WS.
I want the data to end up like,
There are other columns involved but these can be worked around, the columns in the example are what are important.
Since the original data will be entered randomly, I need to sort by the highest number of TAPs on any one floor, so a building with two floors may have the most TAPs combined, but not compared to another building with more TAPs on one floor (Is this making sense?)
When the Start IP and End IP are entered into their cells, the formula/code will autofill down and give an IP address to every TAP.
Any comments or advice on how to do this would be greatfully recieved.
Many thanks
Colin.
I currently have userforms that transfers data to a WS.
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Building | Floor | Room | TAP | VLAN | IP Address | ||
2 | 1 | G | X | 2 | ||||
3 | 7 | G | X | 3 | ||||
4 | 2 | G | X | 2 | ||||
5 | 3 | 1 | X | 1 | ||||
6 | 1 | 1 | X | 2 | ||||
7 | 5 | G | X | 1 | ||||
8 | 2 | G | X | 2 | ||||
Sheet1 |
I want the data to end up like,
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
10 | Start IP | End IP | ||||||
11 | 10.1.1.1 | 10.1.1.254 | ||||||
12 | ||||||||
13 | Building | Floor | Room | TAP | VLAN | IP Address | ||
14 | 7 | G | X | 3 | 10.1.1.1 | |||
15 | 1 | G | X | 2 | 10.1.1.2 | |||
16 | 1 | 1 | X | 2 | 10.1.1.3 | |||
17 | 2 | G | X | 2 | 10.1.1.4 | |||
18 | 2 | G | X | 2 | 10.1.1.5 | |||
19 | 3 | 1 | X | 1 | 10.1.1.6 | |||
20 | 5 | G | X | 1 | 10.1.1.7 | |||
Sheet1 |
There are other columns involved but these can be worked around, the columns in the example are what are important.
Since the original data will be entered randomly, I need to sort by the highest number of TAPs on any one floor, so a building with two floors may have the most TAPs combined, but not compared to another building with more TAPs on one floor (Is this making sense?)
When the Start IP and End IP are entered into their cells, the formula/code will autofill down and give an IP address to every TAP.
Any comments or advice on how to do this would be greatfully recieved.
Many thanks
Colin.