Percent formula for drop down fields
I have a column with the following options for drop down fields:
NA, Not Started, Required, Drafted, Posted
What formula can I use to show me % complete (posted) without taking into account the NAs?
Best Answer
-
Ok. Give this a go:
=COUNTIFS([Column name]:[Column Name], @cell = "Posted") / COUNTIFS([Column Name]:[Column Name], AND(@cell <> "", @cell <> "Posted"))
Answers
-
Do you mean on a parent row, a sheet summary field, or in a separate sheet?
-
I have been using the top row as my totals column, but I can use the summary field if necessary
-
In a sheet summary field, you would use something along the lines of
=COUNTIFS([Column name]:[Column Name], OR(@cell = "Posted", @cell = "NA") / COUNTIFS([Column name]:[Column Name], @cell <> "")
-
That gave me an unparseable error message. I'm not great with multi-function formulas so I'm unsure how to troubleshoot.
-
I also had a misplaced parenthesis. here is a fixed version to try:
=COUNTIFS([Column name]:[Column Name], OR(@cell = "Posted", @cell = "NA")) / COUNTIFS([Column Name]:[Column Name], @cell <> "")
-
Thank you @Paul Newcome, that did give me a percentage. However, out of 78 rows, none say 'posted' so my % should be 0 but it's showing me 64%. Most rows show "NA" and some show "not started" and "drafted"
-
Ok. Give this a go:
=COUNTIFS([Column name]:[Column Name], @cell = "Posted") / COUNTIFS([Column Name]:[Column Name], AND(@cell <> "", @cell <> "Posted"))
-
I believe that formula did it. I truly appreciate your help. Thank you @Paul Newcome !!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 69 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!