Count number of Occurences in columns

Vexorg

Board Regular
Joined
Oct 5, 2010
Messages
116
Hello,

I cant seem to figure this out below is my table:

<TABLE cellSpacing=0 bgColor=#ffffff border=1><CAPTION>Sheet2</CAPTION><THEAD><TR><TH borderColor=#000000 bgColor=#c0c0c0>Timeliness</TH><TH borderColor=#000000 bgColor=#c0c0c0>Accuracy</TH><TH borderColor=#000000 bgColor=#c0c0c0>Issue Resolution</TH><TH borderColor=#000000 bgColor=#c0c0c0>Fail Resolution and Reporting</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#d0d7e5 align=right>1</TD><TD borderColor=#d0d7e5 align=right>1</TD><TD borderColor=#d0d7e5>2</TD><TD borderColor=#d0d7e5>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5 align=right>4</TD><TD borderColor=#d0d7e5>4</TD><TD borderColor=#d0d7e5>-</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5>3</TD><TD borderColor=#d0d7e5>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5>3</TD><TD borderColor=#d0d7e5>3</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5>3</TD><TD borderColor=#d0d7e5>3</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5>3</TD><TD borderColor=#d0d7e5>3</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5 align=right>4</TD><TD borderColor=#d0d7e5>3</TD><TD borderColor=#d0d7e5>3</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5>-</TD><TD borderColor=#d0d7e5>3</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>4</TD><TD borderColor=#d0d7e5 align=right>3</TD><TD borderColor=#d0d7e5>3</TD><TD borderColor=#d0d7e5>3</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>4</TD><TD borderColor=#d0d7e5 align=right>5</TD><TD borderColor=#d0d7e5>5</TD><TD borderColor=#d0d7e5>4</TD></TR></TBODY><TFOOT></TFOOT></TABLE>

I want to count the number of times a 1,2, or 3 occurs in each column.. is there a simple way to do this?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
In your query you can use these to make columns which count

CountOfTimeliness_1s: Sum(IIf([Timeliness] = 1, 1, 0))

CountOfTimeliness_2s:Sum(IIf([Timeliness] = 2, 1, 0))

CountOfTimeliness_3s:Sum(IIf([Timeliness] = 3, 1, 0))

CountOfAccuracy_1s:Sum(IIf([Accuracy] = 1, 1, 0))

CountOfAccuracy_2s:Sum(IIf([Accuracy] = 2, 1, 0))

CountOfAccuracy_3s:Sum(IIf([Accuracy] = 3, 1, 0))


and you can do it just like that for each of the columns.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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