Compare last octet of IP address
first you have to trim the ip-adres from the right to the first dot
(reading form right to left) so
10.10.15.35 becomes .35 and 192.158.96.135 becomes .135
to do this you use the unique caracter of the ip address: it has 3
dots!
to trim an ip in cel A2 use
=RIGHT(A2;FIND(".";A2;FIND(".";A2;FIND(".";A2;1))) )
te formula trims from the right starting at the position of the 3th
dot
do the same for all other ips and compare the last octets
Hope it helps
Ollie4
On 5 feb, 22:40, Ant wrote:
Seems simple
however I've tried using some kind of combination of substitue /
find / mid and right functions however I can't seem to get it to
work..
please don't tell me not to use spreadsheets for ip address
management / natting (Thanks)
10.10.15.35 should match 192.168.95.35 but not match 192.158.96.135
can someone help here?
Thanks.
|