Percent Question

Spook E

New Member
Joined
Aug 15, 2006
Messages
22
If i have a range of data like:

A B A B B B A C C A

How do i count the number of 'A's in the range and show it as a percentage of the total range i.e:

4 'A's out of 10 = 40%

Thanks
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Derek

Well-known Member
Joined
Feb 16, 2002
Messages
1,592
Hi there

Assuming your data is in A1 try this formula:

=(LEN(A1)-LEN(SUBSTITUTE(A1,"A","")))/(LEN(SUBSTITUTE(A1," ","")))

cell with formula formatted for percentage

regards
Derek
 

Doug.T

Board Regular
Joined
Sep 19, 2006
Messages
80
If your data is in a range of cells (ie: A1 to A10) then you could use this approach:

=COUNTIF(A1:A10,"A")/COUNTA(A1:A10)
 

Spook E

New Member
Joined
Aug 15, 2006
Messages
22
That just gave me the number 0

The range is C8:V8 and i would like the result to be located in AG8

Thanks for the reply!
 

Watch MrExcel Video

Forum statistics

Threads
1,108,509
Messages
5,523,313
Members
409,511
Latest member
hitesh222002

This Week's Hot Topics

Top