#1   Report Post  
Posted to microsoft.public.excel.misc
Ed Ed is offline
external usenet poster
 
Posts: 279
Default Formula question

OK, here is the problem:
I have a worksheet, a very large worksheet that looks like this:

Column a
1
1
1
2
2
2
2
2
3
3
3

I need a formula that tells me how many ones, how many 2s, and how many 3s
are in the column. I have about 1 million numbers and need to apply the
formula to the entire column.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula question

=COUNTIF(A:A,ROWS($B$1:B1)) and copy down
--
Gary''s Student - gsnu201003


"Ed" wrote:

OK, here is the problem:
I have a worksheet, a very large worksheet that looks like this:

Column a
1
1
1
2
2
2
2
2
3
3
3

I need a formula that tells me how many ones, how many 2s, and how many 3s
are in the column. I have about 1 million numbers and need to apply the
formula to the entire column.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Formula question

On Fri, 14 May 2010 06:28:01 -0700, Ed wrote:

OK, here is the problem:
I have a worksheet, a very large worksheet that looks like this:

Column a
1
1
1
2
2
2
2
2
3
3
3

I need a formula that tells me how many ones, how many 2s, and how many 3s
are in the column. I have about 1 million numbers and need to apply the
formula to the entire column.

Thanks


For just 1's, 2's and 3's, you could use countif:

=countif(a:a,1)

If there are a large number of unique numbers, you might want to look at using
a Pivot Table.
--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Formula Question - how to get formula to repeat in each subsequent row? [email protected] New Users to Excel 2 January 10th 10 06:02 PM
Formula question bgrearick Excel Discussion (Misc queries) 1 December 31st 06 10:24 PM
Formula Question Dave Excel Discussion (Misc queries) 2 May 22nd 06 06:22 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
If Formula Question carl Excel Worksheet Functions 2 February 8th 06 10:08 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"