Trying to calculate percentage but only for rows that are checked in Helper Column
I'm working on a Summary formula:
=SUM(Complete# / [Total Deliverables]#)
I would like to calculate this percentage, but only when Complete# is a row where the the following helper column is checked.
[Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1
Any Ideas? Thank you!
Best Answer
-
So you want to Count how many Key deliverables are "Complete" in the status. Then divide that number by the amount of deliverables total? I'm assuming the Helper column becomes checked when the status column becomes "complete"?
If that is the case we can remove the helper from the equation. with
=COUNTIF(Status:Status, CONTAINS("complete", @cell)) / [Total Deliverables]#
If you need to keep the helper then
=COUNTIF([Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / [Total Deliverables]#
If the Helper column is tied to something other than the status.
=COUNTIFS(Status:Status, "Complete", [Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / [Total Deliverables]#
Answers
-
SUMIF is the tool you need!
=SUMIFS([Complete#]:[Complete#], [Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / SUM([Total Deliverables]:[Total Deliverables])
SUMIF will let you add a condition such as, this box needs to be checked.
If you have more than one condition you can use SUMIFS
Here is the SS link for the full explanation.
-
Hi Dan!
Thanks so much for responding so quickly. I tried your formula above and received UNPARSABLE
I think one problem may be that the [Total Deliverables]# is a summary sheet value.
I tried =SUMIFS(Complete#, [Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / SUM([Total Deliverables]#)
but I'm receiving INCORRECT ARGUMENT SET
Any ideas? Thanks so much for your help.
-
=SUMIFS([Complete#]:[Complete#], [Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / [Total Deliverables]#
If total deliverables is a Sheet Summary field then this will work
-
Hi Dan,
thanks for the help.
=SUMIFS([Complete#]:[Complete#], [Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / [Total Deliverables]#
is returning UNPARSABLE. I apologize as i didn't make clear that "Complete#" from the original formula is not a column name, but a value in a drop down list. (all of that may have been clear to you, but wanted to be sure)
I Imagine that may be a problem?
Thanks again Dan
-
Can you share a screenshot of your sheet? Removing any sensitive info.
That way I can recreate 100% what you are working with to find the correct solution.
-
Hi Dan,
Thanks again. Please see the screenshot below. The formula in the summary sheet that I circled is incorrect and the original formula i started with.
So as mentioned above
=SUM(Complete# / [Total Deliverables]#)
I would like to calculate this percentage, but only when Complete# (drop down value in the status column) is a row where the the following helper column is checked.
[Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1
Thanks again Dan.
-
So you want to Count how many Key deliverables are "Complete" in the status. Then divide that number by the amount of deliverables total? I'm assuming the Helper column becomes checked when the status column becomes "complete"?
If that is the case we can remove the helper from the equation. with
=COUNTIF(Status:Status, CONTAINS("complete", @cell)) / [Total Deliverables]#
If you need to keep the helper then
=COUNTIF([Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / [Total Deliverables]#
If the Helper column is tied to something other than the status.
=COUNTIFS(Status:Status, "Complete", [Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / [Total Deliverables]#
-
Hi Dan,
thanks again for your time.
The Helper column [Key Deliverables Helper Column]:[Key Deliverables Helper Column] has already been checked in the sheet to identify any deliverable rows. I then count the number of complete# in the status column when the Helper column is checked. Then divide by the Summary sheet value [Total Deliverables]#
I should have unhidden the Helper column in the screen shot so you could see the deliverables rows are checked.
Let me know if i should change anything based on the Helper column already being checked.
Thank you again Dan
Julie
-
Hi Dan,
=COUNTIFS(Status:Status, "Complete", [Key Deliverables Helper Column]:[Key Deliverables Helper Column], 1) / [Total Deliverables]#
seems to have worked perfectly!
Thank you for your patience and have a great day!
-
Glad we could get this problem solved! Happy to help, have a nice day!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 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!