Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default Count numbers in list

Hi! I have a long list of numbers ranging from -100 to 100. The list contains
many thousands of numbers. I want to count the number of cells containing eg
the number 11. How can I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Count numbers in list

Try this:

With
A1:A1000 containing various numbers

This formula returns the count of cells with a value of 11

B1: =COUNTIF(A1:A1000,11)

OR....you could enter 11 in cell C1 and use
B1: =COUNTIF(A1:A1000,C1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Hi! I have a long list of numbers ranging from -100 to 100. The list contains
many thousands of numbers. I want to count the number of cells containing eg
the number 11. How can I do this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default Count numbers in list

Thanks! However since the numbers range from -100 to 100 I want to group them
first. Lets say i want to group the numbers in 10s. how can i do that? help
very much appreciated!

"Ron Coderre" skrev:

Try this:

With
A1:A1000 containing various numbers

This formula returns the count of cells with a value of 11

B1: =COUNTIF(A1:A1000,11)

OR....you could enter 11 in cell C1 and use
B1: =COUNTIF(A1:A1000,C1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Hi! I have a long list of numbers ranging from -100 to 100. The list contains
many thousands of numbers. I want to count the number of cells containing eg
the number 11. How can I do this?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Count numbers in list

Then....Try this:

With
A1: MyValues (the range must have a column heading)
A2:A100 containing various numbers

Select A1:A100

<Data<Pivot Table
Use: Excel
Select the data range (a1:A100)
Click the [Layout] button

ROW: Drag the MyValues field here
DATA: Drag the MyValues field here, too
If it doesn't list as Count of MyValues...dbl-click it and set it to Count
Click [OK]
Select where you want the Pivot Table to create the Pivot Table...but, we're
not done yet.

Next.....
Right-Click on the "MyValues" heading
Select "Group and show detail" from the shortcut menu
Select "Group"
Change the "Starting At" and "Ending At" settings, if necessary
Set "By" to 10
Click [OK]

Now the Pivot Table will display something like this:
Count of MyValues
MyValues Total
-100--91 4
-90--81 3
-80--71 3
-70--61 4
-60--51 3
-50--41 3
etc

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Thanks! However since the numbers range from -100 to 100 I want to group them
first. Lets say i want to group the numbers in 10s. how can i do that? help
very much appreciated!

"Ron Coderre" skrev:

Try this:

With
A1:A1000 containing various numbers

This formula returns the count of cells with a value of 11

B1: =COUNTIF(A1:A1000,11)

OR....you could enter 11 in cell C1 and use
B1: =COUNTIF(A1:A1000,C1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Hi! I have a long list of numbers ranging from -100 to 100. The list contains
many thousands of numbers. I want to count the number of cells containing eg
the number 11. How can I do this?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default Count numbers in list

Thanks alot! That was a very generous answer!!!

"Ron Coderre" skrev:

Then....Try this:

With
A1: MyValues (the range must have a column heading)
A2:A100 containing various numbers

Select A1:A100

<Data<Pivot Table
Use: Excel
Select the data range (a1:A100)
Click the [Layout] button

ROW: Drag the MyValues field here
DATA: Drag the MyValues field here, too
If it doesn't list as Count of MyValues...dbl-click it and set it to Count
Click [OK]
Select where you want the Pivot Table to create the Pivot Table...but, we're
not done yet.

Next.....
Right-Click on the "MyValues" heading
Select "Group and show detail" from the shortcut menu
Select "Group"
Change the "Starting At" and "Ending At" settings, if necessary
Set "By" to 10
Click [OK]

Now the Pivot Table will display something like this:
Count of MyValues
MyValues Total
-100--91 4
-90--81 3
-80--71 3
-70--61 4
-60--51 3
-50--41 3
etc

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Thanks! However since the numbers range from -100 to 100 I want to group them
first. Lets say i want to group the numbers in 10s. how can i do that? help
very much appreciated!

"Ron Coderre" skrev:

Try this:

With
A1:A1000 containing various numbers

This formula returns the count of cells with a value of 11

B1: =COUNTIF(A1:A1000,11)

OR....you could enter 11 in cell C1 and use
B1: =COUNTIF(A1:A1000,C1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Hi! I have a long list of numbers ranging from -100 to 100. The list contains
many thousands of numbers. I want to count the number of cells containing eg
the number 11. How can I do this?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Count numbers in list

Thanks for the feedback, Arne.....I'm glad I could help.

***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Thanks alot! That was a very generous answer!!!

"Ron Coderre" skrev:

Then....Try this:

With
A1: MyValues (the range must have a column heading)
A2:A100 containing various numbers

Select A1:A100

<Data<Pivot Table
Use: Excel
Select the data range (a1:A100)
Click the [Layout] button

ROW: Drag the MyValues field here
DATA: Drag the MyValues field here, too
If it doesn't list as Count of MyValues...dbl-click it and set it to Count
Click [OK]
Select where you want the Pivot Table to create the Pivot Table...but, we're
not done yet.

Next.....
Right-Click on the "MyValues" heading
Select "Group and show detail" from the shortcut menu
Select "Group"
Change the "Starting At" and "Ending At" settings, if necessary
Set "By" to 10
Click [OK]

Now the Pivot Table will display something like this:
Count of MyValues
MyValues Total
-100--91 4
-90--81 3
-80--71 3
-70--61 4
-60--51 3
-50--41 3
etc

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Thanks! However since the numbers range from -100 to 100 I want to group them
first. Lets say i want to group the numbers in 10s. how can i do that? help
very much appreciated!

"Ron Coderre" skrev:

Try this:

With
A1:A1000 containing various numbers

This formula returns the count of cells with a value of 11

B1: =COUNTIF(A1:A1000,11)

OR....you could enter 11 in cell C1 and use
B1: =COUNTIF(A1:A1000,C1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Arne Hegefors" wrote:

Hi! I have a long list of numbers ranging from -100 to 100. The list contains
many thousands of numbers. I want to count the number of cells containing eg
the number 11. How can I do this?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Count numbers in list

Arne,

You can use a rounding function. FLOOR(x, 10) will return 0 for all
numbers in [0, 10), 10 for all in [10, 20) etc.

=SUMPRODUCT(--(FLOOR(A1:A1000,10)=10))

HTH
Kostis Vezerides

On Feb 13, 7:24 pm, Arne Hegefors
wrote:
Thanks! However since the numbers range from -100 to 100 I want to group them
first. Lets say i want to group the numbers in 10s. how can i do that? help
very much appreciated!

"Ron Coderre" skrev:

Try this:


With
A1:A1000 containing various numbers


This formula returns the count of cells with a value of 11


B1: =COUNTIF(A1:A1000,11)


OR....you could enter 11 in cell C1 and use
B1: =COUNTIF(A1:A1000,C1)


Does that help?
***********
Regards,
Ron


XL2002, WinXP


"Arne Hegefors" wrote:


Hi! I have a long list of numbers ranging from -100 to 100. The list contains
many thousands of numbers. I want to count the number of cells containing eg
the number 11. How can I do this?



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
change a vertical list of numbers to horizontal list from 1 cell caz Excel Discussion (Misc queries) 3 September 27th 06 12:11 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Number count - postcodes and need to count the numbers of tim... Mark - Aust Excel Discussion (Misc queries) 1 October 24th 05 10:00 AM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
count a group of numbers but do not count duplicates Lisaml Excel Worksheet Functions 2 January 26th 05 11:19 PM


All times are GMT +1. The time now is 07:21 AM.

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

About Us

"It's about Microsoft Excel"