Stumped!
Trying to calculate a % for where a particular column is filled in. We have various blanks (lining up with headings) that I need to involve in the calculation. Here's my formula:
=ROUND((COUNTIF([Common Control - Client Comments]:[Common Control - Client Comments],<>"")-COUNTIF([Ctrl odr]:[Ctrl odr],""))/COUNTIF([Ctrl odr]:[Ctrl odr],<>"")*100,2)&"% Complete"
So I am trying to find out how many lines in the [Common Control - Client Comments] have something in them and then subtract heading rows (using the [Ctrl odr] column to identify those) and then divide result of that by the non blank rows in [Ctrl odr] column and turn it into a percentage with 2 decimal places.
All I get is #unparseable.
I have also tried using isblank and not(isblank). Same result.
The answer is probably staring me in the face but I am currently blind to it.
BTW I did check the column names are correct.
Thanks in advance
iMac
Answers
-
Two things:
1) There's a <> missing in the second numerator term - COUNTIF([Ctrl odr]:[Ctrl odr],"") should be COUNTIF([Ctrl odr]:[Ctrl odr],<>"")
2) join the value and the "% Complete" with + instead of &
This works for me:
=ROUND((COUNTIF([Common Control - Client Comments]:[Common Control - Client Comments], <>"") - COUNTIF([Ctrl odr]:[Ctrl odr], <>"")) / COUNTIF([Ctrl odr]:[Ctrl odr], <>"") * 100, 2) + "% Complete"
But it doesn't give "two decimal places" since you're multiplying by 100. But I think this is what you mean.
Good luck!
Aaron
-
Awesome, thanks :-)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!