Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting conditional numbers

I have two columns in column b I have numbers that only 1-
4. in column c ihave numbers from 0-100. What i would
like to do is compare column b with c. specifically I
would like to count grades. match the number 4 and count
in column c how many are greater than 90, and count when
coulumn c is between 80 and 90, greater than 70 and less
than 80, count for greater than 60 and less than 70.

Heres what I would like to see:
90 80 70 60
1
2
3 TABLE SHOWS A COUNT OF GRADE SCORES THAT MATCH
4 1,2,3,4

I can do this in programming laguage with conditions and
counters but I don't know how to do it excel?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default counting conditional numbers

Tur

Assuming that the data is in the range B3 to C12 (for this exercise) and the output is going in the range F3 to I6

In E3 to E6 enter 1,2,3 and
In F2 to I2 enter 90, 80, 70 and 6

In F3 enter the formul
=SUMPRODUCT(--($B$3:$B$12=$E3),--($C$3:$C$12F$2)
and copy down to F6

In G3 enter the formul
=SUMPRODUCT(--($B$3:$B$12=$E3),--($C$3:$C$12=G$2))-SUM($F3:F3
and copy across and down to I6

This will fill the matrix with the counts of numbers in the ranges

You will have to modify the data ranges as required. Depending on how variable they are, it may pay to make the data area named ranges, then use the name in the formula

Tony
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting conditional numbers

~× wrote:
*Turk

Assuming that the data is in the range B3 to C12 (for this exercise
and the output is going in the range F3 to I6.

In E3 to E6 enter 1,2,3 and 4
In F2 to I2 enter 90, 80, 70 and 60

In F3 enter the formula
=SUMPRODUCT(--($B$3:$B$12=$E3),--($C$3:$C$12F$2))
and copy down to F6.

In G3 enter the formula
=SUMPRODUCT(--($B$3:$B$12=$E3),--($C$3:$C$12=G$2))-SUM($F3:F3)
and copy across and down to I6.

This will fill the matrix with the counts of numbers in the ranges.

You will have to modify the data ranges as required. Depending o
how variable they are, it may pay to make the data area named ranges
then use the name in the formula.

Tony


--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting conditional numbers

thanks tony I'll give it a try

--
Message posted from http://www.ExcelForum.com

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
counting numbers showry Excel Discussion (Misc queries) 3 April 13th 10 12:41 PM
counting how many of the same numbers Richard Excel Discussion (Misc queries) 1 August 29th 09 04:05 PM
Counting Numbers Funkydan Excel Discussion (Misc queries) 3 November 19th 06 10:13 AM
counting numbers cj21 Excel Discussion (Misc queries) 6 February 16th 06 11:28 PM
Counting numbers cj21 Excel Discussion (Misc queries) 10 February 16th 06 06:55 PM


All times are GMT +1. The time now is 04:06 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"