MS Office Forum / Excel / Worksheet Functions / October 2006
HOW TO ASSIGN NUMERICAL VALUES TO LETTERS IN EXCEL
|
|
Thread rating:  |
teacherpaul - 24 Oct 2006 12:56 GMT I am trying to assign numerical values to grade scores - b+, c- etc, however when i use lookup like this =LOOKUP(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}) which I thought would work I get a #N/A message. Can someone tell me where I'm going wrong? I'm using Excel 2003.
Niek Otten - 24 Oct 2006 13:08 GMT You omitted the 4th argument, which defaults to TRUE. That means the table has to be sorted ascending. I think in your case it is best to include the 4th argument as FALSE.
 Signature Kind regards,
Niek Otten Microsoft MVP - Excel
|I am trying to assign numerical values to grade scores - b+, c- etc, however | when i use lookup like this =LOOKUP(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23})
| which I thought would work I get a #N/A message. Can someone tell me where | I'm going wrong? I'm using Excel 2003. vezerid - 24 Oct 2006 13:41 GMT Paul, modify your formula by using VLOOKUP instead of LOOKUP and add a 0 as fourth argument.
=VLOOKUP(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23},FALSE)
HTH Kostis Vezerides
> which I thought would work I get a #N/A message. Can someone tell me where > I am trying to assign numerical values to grade scores - b+, c- etc, however > when i use lookup like this > =LOOKUP(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}) > which I thought would work I get a #N/A message. Can someone tell me where > I'm going wrong? I'm using Excel 2003. Niek Otten - 24 Oct 2006 13:53 GMT Very good! I thought it was VLOOKUP already!
 Signature Kind regards,
Niek Otten Microsoft MVP - Excel
| Paul, | modify your formula by using VLOOKUP instead of LOOKUP and add a 0 as | fourth argument. =VLOOKUP(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23},FALSE)
| HTH | Kostis Vezerides | | > which I thought would work I get a #N/A message. Can someone tell me where | > I am trying to assign numerical values to grade scores - b+, c- etc, however | > when i use lookup like this =LOOKUP(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23})
| > which I thought would work I get a #N/A message. Can someone tell me where | > I'm going wrong? I'm using Excel 2003. Bernie Deitrick - 24 Oct 2006 13:47 GMT Paul,
=INDEX({1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23},MATCH(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},FALSE))
HTH, Bernie MS Excel MVP
>I am trying to assign numerical values to grade scores - b+, c- etc, however > when i use lookup like this > =LOOKUP(C5,{"U","G-","G","G+","F-","F","F+","E-","E","E+","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+","A*"},{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}) > which I thought would work I get a #N/A message. Can someone tell me where > I'm going wrong? I'm using Excel 2003. teacherpaul - 24 Oct 2006 14:35 GMT Bernie you're a saviour thanx so much
> Paul, > [quoted text clipped - 9 lines] > > which I thought would work I get a #N/A message. Can someone tell me where > > I'm going wrong? I'm using Excel 2003.
|
|
|