Formula Problem

G

Guest

I've got a range of grades in cols D:M e.g B,C,A,D,F,B,C,A,A,E

and a lookup table named "Points"
A 6
B 5
C 4
D 3
E 2
F 1

In Col N I'm trying to create a formula which adds the points for each grade
in Cols D:M

Using the example above the answer would be 42 but I'm stuck on how to
create a formula to calculate it.

Any help would be much appreciated

Thanks a lot
 
G

Guest

Try this:
For grades in Cells D1:M1
N1: =SUMPRODUCT(SEARCH(D1:M1,"FEDCBA"))

Does that help?

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

Guest

Hi,

Let us suppose that the grades are D2, E2, ..... M2, and the lookup table is
in the range, say A2:B7). In N2 enter the formula,

=SUMPRODUCT((D2:M2=$A$2:$A$7)*$B$2:$B$7)

If you have grade-data in more rows below Row 2 (i.e., D2:D101, E2:E101,
....., M2:M101, for several students), drag the formula in N2 down the column
to N101.

Regards,
B. R. Ramachandran
 
B

Biff

Hi!

Invert your lookup table such that:

F
E
D
C
B
A

Then: (assuming there are no empty cells in the range D1:M1)

=SUMPRODUCT(MATCH(D1:M1,A1:A6,0))

Biff
 
G

Gord Dibben

Assuming letter grades are in D1:M1 and lookup table is A1:A6

In D2 enter =VLOOKUP(D1,$A$1:$A$6,2,FALSE)

Drag across to M2

In N2 enter =SUM(D2:M2) returns 42 as you state in your description.

But that does sum up the total for "each" grade.


Gord Dibben Excel MVP
 
G

Guest

Thanks a lot for all the ideas. I've gone with B.R.'s suggestion in the end
but all the ideas were helpful. Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top