+ Reply to Thread
Results 1 to 7 of 7

LOOKUP sequence not correctly matching

  1. #1
    Registered User
    Join Date
    03-30-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2010
    Posts
    2

    LOOKUP sequence not correctly matching

    Hi

    I am trying to create a template to calculate a GPA based on Module Grades and Grade Point Values. Whether I specify the array by cells or define them in an array within the formula the sequence is not applied correctly. Excel does not like the '+' and '-' symbols, in this case A+, A, A- given the value 4.2, 4, 3.8. The formula shows 3.8 for A+ instead of 4.2 and other mismatches occur down the line. Now, if I make it A1, A2, A3 it works but this is not the input I have to work with.

    Any ideas on managing to use the +- symbols?

    File attached...

    Thanks
    Gregori
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: LOOKUP sequence not correctly matching

    try: =CHOOSE(MATCH(B2,{"a+","a","a-","b+","b","b-","c+","c","c-","d+","d","d-","e","f","g","PC","PR","ng"},0),4.2,4,3.8,3.6,3.4,3.2,3,2.8,2.6,2.4,2.2,2,1.6,1,0.4,1.6,1.6,0)

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: LOOKUP sequence not correctly matching

    The list of items needs to be sorted (by ASCII codes, not by how we see the items), so you need to change your formula in C2 to this:

    =LOOKUP(B2,{"A",4;"A-",3.8;"A+",4.2;"B",3.4;"B-",3.2;"B+",3.6;"C",2.8;"C-",2.6;"C+",3;"D",2.2;"D-",2;"D+",2.4;"E",1.6;"F",1;"G",0.4;"NG",0;"PC",1.6;"PR",1.6})

    Hope this helps.

    Pete

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: LOOKUP sequence not correctly matching

    Sort A+,A,A- from A to Z

    =LOOKUP(B2,{"a";"a-";"a+";"b";"b-";"b+";"c";"c-";"c+";"d";"d-";"d+";"e";"f";"g";"ng";"PC";"PR"},{4;3.8;4.2;3.4;3.2;3.6;2.8;2.6;3;2.2;2;2.4;1.6;1;0.4;0;1.6;1.6})

  5. #5
    Registered User
    Join Date
    03-30-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2010
    Posts
    2

    Re: LOOKUP sequence not correctly matching

    Thanks everyone, all solutions appear to work.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: LOOKUP sequence not correctly matching

    If the basic problem is solved
    - it's always a good practice to show respect to the person(s) who have helped you
    - is a click on the Add Reputation first (left lower corner of the post of person(s) who helped you) and then
    - mark the thread as SOLVED (top right corner over your first post - Thread Tools). This is important for all of us,

    Thanks

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: LOOKUP sequence not correctly matching

    Thanks for feedback and of course try

    btw. Sorting is not required
    Last edited by sandy666; 03-31-2017 at 11:01 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Matching two seperate data sets correctly together based on text.
    By richhhh in forum Excel General
    Replies: 2
    Last Post: 09-07-2016, 09:06 PM
  2. Replies: 3
    Last Post: 07-10-2016, 03:32 AM
  3. Lookup names that have different ordering/sequence
    By trafsc119 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2016, 10:07 PM
  4. Index for Sequence Matching or how close is the match
    By sajeel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2013, 05:59 AM
  5. [SOLVED] Lookup question matching part of lookup value in the table array
    By kosmo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2013, 11:07 AM
  6. [SOLVED] Index/Match Not Matching Correctly on Multiple Criteria Across Sheets
    By cbauer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2012, 04:19 PM
  7. Find\Lookup sequence of numbers in rows
    By WEBBOOO in forum Excel General
    Replies: 3
    Last Post: 06-28-2012, 08:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1