Formula Assistance
Hi All
A newbie to Smartsheets, so please bear with me.
I have a formula that works on excel but not on Smartsheets….any ideas why?
Excel: =IF(K44="Approved",SUM(F43-C44),IF(K44="Declined",F43))
Smartsheets: =if([Approver approval]43="Approved",sum([Days Remaining]42-[Annual Leave]43,if([Approver approval]43="Declined",[Days Remaining42)))
Thanks Kim
Comments
-
Your Formula:
=if([Approver approval]43="Approved",sum([Days Remaining]42-[Annual Leave]43,if([Approver approval]43="Declined",[Days Remaining42)))
your sum is not the correct reference. it is currently
sum([Days Remaining]42-[Annual Leave]43
it should be
sum([Days Remaining]42:[Annual Leave]43)
you have a minus instead of a colon and don't close out the sum. your end formula should be:
=if([Approver approval]43="Approved",sum([Days Remaining]42:[Annual Leave]43),if([Approver approval]43="Declined",[Days Remaining]42
*You also incorrectly referenced the days remaining 42 at the very end of your code. you missed your hard bracket.
-
Got cloudflared on the edit. Anyways I took a look back at your picture you posted and I made a mistake on the sum. you don't need the sum formula, that is for a range, you just want to add two cells together then just add them.
=if([Approver approval]43="Approved",[Days Remaining]42+[Annual Leave]43,if([Approver approval]43="Declined",[Days Remaining]42
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 440 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!