Help with displaying Sum/Count expressed as a fraction

landmark33

New Member
Joined
May 7, 2010
Messages
18
A
B
1
0
0/1
2
1
1/2
3
1
2/3
4
0
2/4
5
1
3/5
6
0
3/6

<tbody>
</tbody>


See above chart. In column A, I will have either 0 or 1 entered manually. For column B, I want to create a formula that is basically SUM/COUNT.

So for example cell B6 is something like =[sum(a1:a6)]/[count(a1:a6)]

I'm not sure if I have that exactly right, so please help me create this formula accurately. But the really tricky part here is I want column B to be expressed as a fraction as shown above.

Thanks!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi

Try:

=sum(a1:a6)&"/"&count(a1:a6)

I'm assuming you don't want the fraction simplified
 
Upvote 0
Aren't fractions offered standard in the cell properties? Right between percentage and scientific.
 
Upvote 0
Aren't fractions offered standard in the cell properties? Right between percentage and scientific.

Hi

Yes, but as number values, meaning it will simplify like you do in Math.

For ex., format a cell as fraction and enter the formula

=5/10

you'll see in the cell

1/2

For some cases it's what you want, in other cases it may not be.

In the case of the OP, 5/10 means there were 10 occurences and 5 of them were 1, it gives you more information that 1/2 which simply tells you that half of the occurences had a 1 but not how many occurences there were.

That's why I asked if the fraction could be simplified.
 
Upvote 0
Correct. I do not want the fractions simplified. That's why in my example chart I had in B6 as "3/6" and not "1/2".

I'll try the formula out later and report back. Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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