How to remove NA from Calculation
Hello,
I am currently using the formula below to get a percentage complete calculation, one of the parameters has the option for NA. How do I include the NA in the formula to make it so it doesn't affect the percentage? It is the bolded parameter below:
=SUM(IF([Paperwork Received]1 = "YES", 0.2, 0), IF([Samples Received]1 = "YES", 0.2, 0), IF([MEC HPLC Received]1 = "YES", 0.2, 0), IF(Hold1 = "YES", 0, 0), IF([Micro Received]1 = "YES", 0.2, 0), IF(Discrepancies1 = "NO", 0.2, 0))
Answers
-
Can you show a screenshot? What parameter includes NA, [MEC HPLC Received]?
-
Yes MEC HPLC Received has the NA
-
@tchav Try adding in the bold below. It creates a nested IF as the "value if false" if [MEC HPLC Received]1 <> "Yes", so that if the [MEC HPLC Received]1 = "NA" it leaves the cell blank, but if it's not Yes or NA, it sets the cell to 0.
=SUM(IF([Paperwork Received]1 = "YES", 0.2, 0), IF([Samples Received]1 = "YES", 0.2, 0), IF([MEC HPLC Received]1 = "YES", 0.2, IF[MEC HPLC Received]1 = "NA", "", 0)), IF(Hold1 = "YES", 0, 0), IF([Micro Received]1 = "YES", 0.2, 0), IF(Discrepancies1 = "NO", 0.2, 0))
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!
-
That didnt work. :(
-
Try an OR statement.
=SUM(IF([Paperwork Received]1 = "YES", 0.2, 0), IF([Samples Received]1 = "YES", 0.2, 0), IF(OR([MEC HPLC Received]1 = "YES", [MEC HPLC Received]1 = "N/A"), 0.2, 0), IF(Hold1 = "YES", 0, 0), IF([Micro Received]1 = "YES", 0.2, 0), IF(Discrepancies1 = "NO", 0.2, 0))
-
I missed a parentheses between IF and [MEC HPLC Received]1 = "NA". Sorry about that:
=SUM(IF([Paperwork Received]1 = "YES", 0.2, 0), IF([Samples Received]1 = "YES", 0.2, 0), IF([MEC HPLC Received]1 = "YES", 0.2, IF([MEC HPLC Received]1 = "NA", "", 0)), IF(Hold1 = "YES", 0, 0), IF([Micro Received]1 = "YES", 0.2, 0), IF(Discrepancies1 = "NO", 0.2, 0))
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!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!