Max Formula

=IFERROR(MAX(INDEX({Customer Invoice Log Sheet - Days Past Due}, MATCH([Profit Center]@row, {Customer Invoice Log - Profit Center}, 0))), "")
Im looking for the max days for the profit center. Problem is its giving me the answer 0 when it should be more than that. In some cases it seems to be working. Its like its pulling the first profit center row total days when it should be looking at the whole sheet
Answers
-
Are you trying to return the MAX {Customer Invoice Log Sheet - Days Past Due} value? The MAX you have outside of the INDEX isn't doing anything, as INDEX is only going to return a single value, you want MAX to look at a range.
Try using the formula below. The COLLECT function will return a range of Days Past Due for only the Profit Centers that match your @row, and then run the MAX function on that custom range to return the max Days Past Due.
=MAX(COLLECT({Customer Invoice Log Sheet - Days Past Due}, {Customer Invoice Log - Profit Center}, [Profit Center]@row))
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.1K Get Help
- 430 Global Discussions
- 149 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 154 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!