LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default countif is one way, any others?

Hi Cam

Supose you have the following in each of these cells

A B C
D E F G
Row 1 01/Jun 01/Jul 01/Aug
a b c d

Row 2 a a b
=COUNTIF($A2:$C2,E$2)
Row 3 b a c


Then put the formula into Cell D2 and drag over the Range from D2 to G3

this will set up a matrix which will return the values you require and
automatically make the correct references to the approporiate cells.

Now as you enter your codes under the dates in Columns A , B, C you will get
the correct count.

Hope I have put this into terms you can understand. It does work.

Good Luck Fred



"Cam" wrote in message
m...
. w x y z | a | b | c |
|---|---|---|
name 1 a a b c | 2 | 1 | 1 |
name 2 b a b | 1 | 2 | |
name 3 c a a a | 3 | | 1 |
name 4 b a b c | a | 2 | 1 |

Let's say w, x, y, z are dates, and a letter grade is given for tests
taken by students on those dates. Is there a more efficient method of
calculating how many of each letter grade each student has than what I
already have?

I'm using... =IF(COUNTIF(C3:f3,"a")=0,"",COUNTIF(C3:f3,"a")) [entered
in the "a" column, for example]. I already validate the entries for
the proper letters so that's okay.

It's not fancy but it works. It just doen't "look" too clean having
about 100 rows of names and 5 columns of letters.

Was wondering if there was a way to call a function or method to
calculate the counts or maybe just to clean up the formula a bit. Use
of Array?

Thanks



 
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
countif ? dmack Excel Discussion (Misc queries) 3 January 25th 07 10:16 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 04:48 PM.

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"