Help with Calculation
Hey all,
I have a form with multiple fields. I'm trying to figure out how I can create some type of count that would tell me, how many fields in that form were filled out vs. not filled out. In addition, I'd need to apply several filters to the data that is being counted.
Is this even possible? 🤯😬
Thanks,
Carlos
Best Answer

You are going to have to use a series of IF statements outputting a one and adding them together to get the count.
=IF([1st Required]@row <> "", 1) + IF([2nd Required]@row <> "", 1) + IF([3rd Required]@row <> "", 1) + ....................................
Once you have your count, you would want to compare it to the total number required
=IF(IF([1st Required]@row <> "", 1) + IF([2nd Required]@row <> "", 1) + IF([3rd Required]@row <> "", 1) + .................................... = 11, "output if all are filled out", "output if any are missing")
Then if you only wanted that to happen based on criteria in another column:
=IF([Another Column]@row = "criteria", IF(IF([1st Required]@row <> "", 1) + IF([2nd Required]@row <> "", 1) + IF([3rd Required]@row <> "", 1) + .................................... = 11, "output if all are filled out", "output if any are missing"))
Answers

You can insert an additional column and use a COUNTIFS formula such as
=COUNTIFS([First Form Column]@row:[Last Form Column]@row, @cell <> "")
This will count how many fields are not blank.

@Paul Newcome  Thanks for the suggestion. How would I use the above if there is a mix of required and non required (and I only want to count the required)? Can the same logic be used to do the counts by column and but also adding a "filter" for a different column?

How many are required, and are they grouped together or do they have "unrequired" columns in between?
What exactly do you mean by adding a "filter" for a different column?

@Paul Newcome I have 11 that are required that are mixed in between the nonrequired ones. Regarding the filter, then I have two ensure that the counts only happen on cells that meet the a certain criteria based on data in another column. What I'm trying to do is convoluted. 😱

You are going to have to use a series of IF statements outputting a one and adding them together to get the count.
=IF([1st Required]@row <> "", 1) + IF([2nd Required]@row <> "", 1) + IF([3rd Required]@row <> "", 1) + ....................................
Once you have your count, you would want to compare it to the total number required
=IF(IF([1st Required]@row <> "", 1) + IF([2nd Required]@row <> "", 1) + IF([3rd Required]@row <> "", 1) + .................................... = 11, "output if all are filled out", "output if any are missing")
Then if you only wanted that to happen based on criteria in another column:
=IF([Another Column]@row = "criteria", IF(IF([1st Required]@row <> "", 1) + IF([2nd Required]@row <> "", 1) + IF([3rd Required]@row <> "", 1) + .................................... = 11, "output if all are filled out", "output if any are missing"))

Thank you!!

Happy to help. 👍️
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 63.6K Get Help
 403 Global Discussions
 215 Industry Talk
 455 Announcements
 4.7K Ideas & Feature Requests
 141 Brandfolder
 136 Just for fun
 56 Community Job Board
 459 Show & Tell
 31 Member Spotlight
 1 SmartStories
 296 Events
 36 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!