Trying to calculate a change over time, but ignore missing data
Formula: =IFERROR(ABS([2012]@row - [2023]@row) / MAX([2012]@row:[2023]@row), "")
but the formula returns a 100% if the first column data is missing. If the last column data is missing, the % change is skewed lower.
The data is not restricted or proprietary. it is new construction cost by zip code over time.
Answers
-
What would you want it to pull in place of 2012 or 2023 if either of them are blank?
-
The field with the first/last data
-
First one would be
=VALUE(LEFT(JOIN(COLLECT([2012]@row:[2023]@row, [2012]@row:[2023]@row, @cell <> ""), "~"), FIND("~", JOIN(COLLECT([2012]@row:[2023]@row, [2012]@row:[2023]@row, @cell <> ""), "~")) - 1))
Last one would be
=VALUE(MID("~" + JOIN(COLLECT([2012]@row:[2023]@row, [2012]@row:[2023]@row, @cell <> ""), "~") + "~", FIND("!", SUBSTITUTE("~" + JOIN(COLLECT([2012]@row:[2023]@row, [2012]@row:[2023]@row, @cell <> ""), "~") + "~", "~", "!", COUNTIFS([2012]@row:[2023]@row, @cell <> ""))) + 1, FIND("!", SUBSTITUTE("~" + JOIN(COLLECT([2012]@row:[2023]@row, [2012]@row:[2023]@row, @cell <> ""), "~") + "~", "~", "!", COUNTIFS([2012]@row:[2023]@row, @cell <> "") + 1)) - (FIND("!", SUBSTITUTE("~" + JOIN(COLLECT([2012]@row:[2023]@row, [2012]@row:[2023]@row, @cell <> ""), "~") + "~", "~", "!", COUNTIFS([2012]@row:[2023]@row, @cell <> ""))) + 1)))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!