Skip to content

Instantly share code, notes, and snippets.

View ViggoMode2021's full-sized avatar
🥅

Ryan Viglione ViggoMode2021

🥅
  • New London, CT
View GitHub Profile
@ViggoMode2021
ViggoMode2021 / excel formulas.md
Created June 18, 2024 23:57 — forked from f-steff/excel formulas.md
Excel formulas to calculate IP values such as Netmask, IP range start, IP range end, Broadcast IP, Number of hosts.

Excel formulas to calculate IP values - Works in Excel and Google Sheet.

Updated 2023-12-11: Hosts calculation updated to support CIDR or 31 and 32.

Prerequisites:

  • A1 contains an IP address, such as 10.0.0.2
  • B1 contains the number of bits in the netmask (CIDR) such as 24

The below formulas then go into C1, D1 etc. to perform the various calculations. Some calculations depends on other calculations.

Connect & Disconnect
---
import json
def lambda_handler(event, context):
print(event)
print("****")
print(context)