counting the x;s and the ci's

Mrs Lyttle

New Member
Joined
Feb 21, 2018
Messages
4
Good evening I am in need of guidance. I have a spreadsheet that I need in each column the total number of marks / total number of x.
CI
x
x
x
x
005/004
I want to enter a formula that will give me the above ansewer. Help me please.

<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
=COUNTA(A1:A5)&"/"&COUNTIF(A1:A5,"X")

where you data in in A1-A5
 
Upvote 0
I think CI is just a mark not a column total number of non empty cells ie. marks and total number of X's 5/4
 
Upvote 0
I think CI is just a mark not a column total number of non empty cells ie. marks and total number of X's 5/4
Ahh now I've got it, she asked for the ratio. You are right @Drrellik

Then if CI is a column header, maybe it would be better to start range from A2

=COUNTA(A2:A5)&"/"&COUNTIF(A2:A5,"x")
 
Last edited by a moderator:
Upvote 0
Try...

=TEXT(COUNTIFS(A:A,"?*"),"000")&"/"&TEXT(COUNTIFS(A:A,"x"),"000")

This is even better for the formatting 005/004 just make sure you don't have the formula in column A unless you change to define the range
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,954
Members
448,535
Latest member
alrossman

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