Function Question
I am trying to write a function that adds the numbers entered into one column only if there is a number in another column. Both would be referencing another sheet. For example, column A has the number of dependents a person has. I want to add up the number of dependents entered in column A to display on another sheet, but only add them if there is a number in column B.
Thanks for any and all help!
Best Answer
-
Hi @TPolanco
To elaborate on Paul's point, here is a formula that could be used to achieve this in Smartsheet:
=SUMIF(B:B, ISNUMBER(@cell), A:A)
Mine displays on Sheet Summary, not another sheet, but the formula format is the same.
Answers
-
This would be a perfect use case for the SUMIFS function:
.
-
Hi @TPolanco
To elaborate on Paul's point, here is a formula that could be used to achieve this in Smartsheet:
=SUMIF(B:B, ISNUMBER(@cell), A:A)
Mine displays on Sheet Summary, not another sheet, but the formula format is the same.
-
Thanks, that worked perfectly!!
-
Happy to help!😁
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!