ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculating percent of times a value is in a column and total # (https://www.excelbanter.com/excel-worksheet-functions/259970-calculating-percent-times-value-column-total.html)

clbritt76

Calculating percent of times a value is in a column and total #
 
Ok so I have a column with values in it. Say A4:A12, the values entered will
always be 1, 2, 3, or 4. I need a formula that will calculate the % that say
a 1 appears in that range and I need a formula that will calculate the total
number of 1s in that range.

Thanks!

Fred Smith[_4_]

Calculating percent of times a value is in a column and total #
 
=countif(a4:a12,1)/count(a4:a12)

Format as percent

Regards,
Fred

"clbritt76" wrote in message
...
Ok so I have a column with values in it. Say A4:A12, the values entered
will
always be 1, 2, 3, or 4. I need a formula that will calculate the % that
say
a 1 appears in that range and I need a formula that will calculate the
total
number of 1s in that range.

Thanks!



Mike H

Calculating percent of times a value is in a column and total #
 
Hi,

To count the ones
=COUNTIF(A4:A12,1)

% of ones
=COUNTIF(A4:A12,1)/9

Format this one as %
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"clbritt76" wrote:

Ok so I have a column with values in it. Say A4:A12, the values entered will
always be 1, 2, 3, or 4. I need a formula that will calculate the % that say
a 1 appears in that range and I need a formula that will calculate the total
number of 1s in that range.

Thanks!



All times are GMT +1. The time now is 02:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com