A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Here is a practical example of how to set up your spreadsheet:
The basic formula is Electricity consumption (kWh) = Current meter reading − Previous meter reading
Create a worksheet with the following columns:
In the Consumption column (E2), enter: =D2-C2. Copy the formula down to calculate the consumption for each reading.
Automatically retrieve previous meter readings
If you have multiple meters, you can use the LOOKUP function to retrieve the most recent previous reading for the same meter.
For example, starting from C4, enter: =IFERROR(LOOKUP(2,1/($B$2:B3=B4),$D$2:D3),""). Copy the formula down. This formula searches for the most recent previous entry with the same Meter ID and retrieves its Current Reading. It prevents readings from different meters from being mixed.
If your data is formatted as an Excel Table (Ctrl + T), formulas will automatically copy to new rows whenever you add meter readings, allowing consumption calculations to update automatically.
PivotTables can help summarize electricity consumption across multiple meters and periods.
To create one:
- Select your Excel Table.
- Go to Insert > PivotTable.
- Drag Date into the Rows area.
- Drag Meter into the Columns area.
- Drag Consumption into the Values area.
If possible, please share a sample of your spreadsheet and let me know where you're getting stuck. That will help me provide more accurate suggestions tailored to your setup.
You can also use AI tools such as Microsoft Copilot to help build formulas, explain how they work, troubleshoot errors, or suggest improvements to your spreadsheet.