Calculate Difference Between Latest Entry and Previous Entry (Dates)
Hello!
We are collecting weekly meter reading data (Meter Name, Reading Date, Actual Reading) via webform.
I would like to create a calculation in a new column (within the sheet) that automatically calculates the weekly meter usage based on the meter name using current and previous entries by date. *For each Meter Name: Calculate Weekly Usage = current reading - previous reading (readings in the 1 column by reading date)* I am not sure how to make this if statement using dates and meter name criteria... I will note that the readings are not always exactly 7 days apart.
We would also like to eventually create alerts for when usage variance % goes over a threshold. How do I do that?
Comments
-
Hello,
From your screenshot, it appears that you only have one Meter Reading column. All readings (current and recent) must exist in cells in your sheet. There currently isn't a way to use the cell history (previous reading) to perform calculations.
To accomplish what you need, you'll need to add another column in your sheet that tracks the prior reading. You'll then be able to create an IF statement that will take the difference between the two depending on your meeting reading.
=IF([Meter Name & Number]1, "Natural Gas Meter # 0000000", [Meter Reading]1 - [Prior Meter Reading]1)
You can then create an alert that will notify you when your meter reading or your difference column reaches a certain value. More on notifications here: https://help.smartsheet.com/articles/542904-using-notifications
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!