Make formulas foolproof from deleted columns
I am trying to make a formula that doesn't break whenever someone deletes a column. Example: We have 5 columns (Group 1, Group 2, Group 3, Group 4, Group 5). I then have a formula in a 6th column which sums the values in the first 5 columns together. But, some projects only have 3 or 4 groups... so the Project Manager wants to delete the extra columns in their project sheet. The problem is, when you do this, the Summation formula breaks and gets a #REF in it which causes the cell to be #Unparseable. I tried using IFERROR and ISERROR but I cannot seem to make this work without having the PM actually edit the formula. Any ideas?
Best Answer
-
How about just making them Editors instead of Admins? Then they won't be able to delete columns!
You could also put a locked blank hidden column at both ends (call them Group 0 and Group 5ish LOL) and make your SUM formula:
=SUM([Group 0]@row:[Group 5ish]@row)
This says "add up all the columns starting with this one and ending with this one." That way, whatever columns they delete from in between those two columns won't affect the formula at all.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
How about just making them Editors instead of Admins? Then they won't be able to delete columns!
You could also put a locked blank hidden column at both ends (call them Group 0 and Group 5ish LOL) and make your SUM formula:
=SUM([Group 0]@row:[Group 5ish]@row)
This says "add up all the columns starting with this one and ending with this one." That way, whatever columns they delete from in between those two columns won't affect the formula at all.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
I do want them to have the ability to delete the unnecessary columns... BUT, your blank hidden column was perfect. That worked. THANKS!!!
-
I'm glad that worked for you! If you could mark my answer as accepted I would appreciate it. 😃
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives