Percentage Calculation

DJFANDANGO

Board Regular
Joined
Mar 31, 2016
Messages
111
Office Version
  1. 365
Platform
  1. Windows
Hi Again Guys...

I have a list of 'stats', from a list of names, but... theres always a 'but'...

I have 52 rows for names, but sometimes only 45 or so are populated, how do I get the percentage to ignore a blank cell where a name should be ($A:$A)?


John1
Mike1
Debbie1
[BLANK]
[BLANK]
Graham1
Susan1
Participation100%

<tbody>
</tbody>

Any help woud be greatly appreciated
Steve
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Re: Percentge Calculation Help

G'day Steve,

A few details to help us answer your question:

Under what circumstances does the "1" appear in the column you are using for %? I.e added manually or calculated?
What cells are used to calulate the percentage. I.e % of what? I'm assuming that ratio between the 1's and the rows with a name.
Are you able to add a helper column? May not be needed but handy to know if we can.

Cheers

shane
 
Upvote 0
Re: Percentge Calculation Help

G'day Shane,

The 1 represents 'the 1 item per week that they are supposed to do (as a minimum)' if they do 4 items thats also cool, but the 100% number comes from all personnel completing at least 1 item per week.

So for example, I have a list of 10 names but with gaps between them (this cannot be changed) so in all, there are 15 rows of cells.

Inside the percentage cell is this formula '=COUNTIFS(B1:B45,">=1")/COUNTA(B1:B45)'

I'd like excel to calculate the percentage of persons based on how many are on the list, (if 10 names participate it's 100%, if 5 participate 50% and so on)

Hope this clears up the scenario

Steve
 
Upvote 0
Re: Percentge Calculation Help

How about
Code:
=COUNTA(B1:B45)/ROWS(B1:B45)
 
Upvote 0
Re: Percentge Calculation Help

Hi Shane,

That code works and gives me 100% regardless if A1:A50 is blank or not.

If the cell is blank I dont need it to count in the percentage

If the cell has name I need it to count in the percentage

So the table below shows 2 blank cells (not counted, and A2 (mike) name on list, but not done any task) so the percentage I want to achieve now is 80%


John
1
Mike
Debbie
1
[BLANK]
[BLANK]
Graham
1
Susan
1
80%

<tbody>
</tbody>
Whaddya reckon?
Cheers
Steve
 
Upvote 0

Forum statistics

Threads
1,214,515
Messages
6,119,972
Members
448,933
Latest member
Bluedbw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top