Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am using Excel 2003 (11.6355.6360) SP1 on an XP machine.
I am attempting to write a worksheet function to translate a GCSE grade to a value. (GCSE is General Certificate of Secondary Education ) The following grades and values are used Grade A* A B C D E F G U Value 58 52 46 40 34 28 22 16 0 Currently, I use a naive VBA function to do the job. (It consists of a sequence of "if param = grade then func = value end if" clauses.) On one line, I tried =HLOOKUP(GRADE, {"A", "A*, "B", "C", "D", "E", "F", "G", "U"; 52, 58, 52, 46, 40, 34, 28, 22, 16}, FALSE) That works well for expected values other than "A*" (eh star) and for unexpected values such as "What?" which returns #NA. However, A GRADE of "A*" (eh star) matches "A" and 52 is returned. A GRADE of "A~*" (eh tilde star) matches "A*" and 58 is returned. Is this expected behaviour? (British spelling.) If so, is there a function to literalize metacharacters such as "*" (star)? Is there any documentation covering the point? -- Walter Briscoe |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
my mouse pointer is a star I want a plus | New Users to Excel | |||
Bob- you are a star! | Excel Discussion (Misc queries) | |||
star | Excel Discussion (Misc queries) | |||
what does the star (*) indicate in an excel spreadsheet | Excel Discussion (Misc queries) |