View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default Totalling coded values

Criterias - defined name range (eg. A2:A5)
Codes - defined name range (eg. B2:B10)
Marks - defined name range (eg. C2:C10)

=SUMPRODUCT((ISNUMBER(MATCH(Codes,Criterias,0)))*M arks)

Adjust your range to suit


"Toppers" wrote:

Given a table of exam grades and corresponding marks as below, how do I sum a
series of grades?

E.g if grades are A*,A, C & D how do I total the marks of 58, 52, 40 and 34.
Assume data is columns B to J with (some) blank column entries.

TIA.



Codes Marks
A* 58
A 52
B 46
C 40
D 34
E 28
F 22
G 16
U 0