home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / apps / 17250 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  1.9 KB

  1. Path: sparky!uunet!stan!not-for-mail
  2. From: masson@solbourne.com (Bob Masson)
  3. Newsgroups: comp.sys.mac.apps
  4. Subject: Re: Excel counting letter grades???
  5. Date: 16 Nov 1992 10:02:03 -0700
  6. Organization: Solbourne Computer, Inc., Longmont, CO
  7. Lines: 34
  8. Sender: masson@solbourne.com
  9. Message-ID: <1e8k6bINNi4i@ollie.solbourne.com>
  10. References: <41030@sdcc12.ucsd.edu>
  11. NNTP-Posting-Host: ollie.solbourne.com
  12.  
  13. In article <41030@sdcc12.ucsd.edu> fairchil@helix.ucsd.edu (Kevin Fairchild) writes:
  14. >
  15. >From fairchil Sun Nov 15 18:26:39 1992
  16. >To: /home/helix/fairchil/.article
  17. >
  18. >What am I missing?  I'm using Excel 4.0 to keep track of my students' grades. 
  19. >I have a column of letter grades.  What I want to do is create a simple
  20. >distribution; that is, tell me how many A's, how many B's, etc.  I have found
  21.  
  22. Excel is bad at this (wingz has a freq distribution command), but anyway, one
  23. learns to live with this stuff!  If you're familiar with using arrays, the
  24. following array command (you have to use apple-enter to enter this into a
  25. cell) assumes that i have a list of "records" (rows 2 through 158);  in
  26. column B there is a character {a,b,c,d,e}.  I want to count the number of
  27. each of them at the bottom.  At the bottom (starting at row 168), there are 5
  28. summary rows, with the character "a..e" in column b.  In whatever column the
  29. following formula appears will be the frequency count.
  30.  
  31. {=SUM(IF($B$2:$B$158=$B162,1,0))}
  32.  
  33. Note that the braces {} are applied by Excel; don't enter them into the
  34. formula.  Also, you can substitue lots of things for the "1", like:
  35.  
  36. {=SUM(IF(LEFT($B$2:$B$158,1)=$B162,E$2:E$158,0))}
  37.  
  38. this formula sums column E for all rows that contain the single letter in
  39. the summary rows column B in the first position of the string in column B.
  40.  
  41. Anyway, if this is confusing read the section about arrays in the Excel
  42. manual.  You won't know any more about arrays, but *this* posting will look
  43. trivial!
  44.  
  45. masson
  46. masson@solbourne.com
  47.