#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nospaminlich
 
Posts: n/a
Default Formula Problem

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Formula Problem

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

Does that help?

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


"nospaminlich" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
B. R.Ramachandran
 
Posts: n/a
Default Formula Problem

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

"nospaminlich" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Formula Problem

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

"nospaminlich" wrote in message
...
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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Formula Problem

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

On Thu, 1 Dec 2005 15:41:02 -0800, nospaminlich
wrote:

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




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nospaminlich
 
Posts: n/a
Default Formula Problem

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
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
formula percentage problem thinkpic New Users to Excel 4 November 2nd 05 08:04 PM
formula problem Bart New Users to Excel 4 October 21st 05 12:56 PM
Incremental formula problem Benjamin Excel Worksheet Functions 4 October 18th 05 02:42 PM
Problem with nested logical formula. Bill R Excel Worksheet Functions 6 September 26th 05 04:36 AM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM


All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"