+ Reply to Thread
Results 1 to 4 of 4

Thread: Lookup

  1. #1
    Registered User
    Join Date
    09-07-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lookup

    HI,
    I'm new to Excel and don't know it very well. I'm doing a LOOKUP. But I have two different digits under lookup_vector.

    Results
    33

    The column that goes under lookup_vector
    53,54 (in the same cell)

    How do I get it to lookup and show the result "33" for both numbers 53 and 54?

  2. #2
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: Lookup

    Hi and welcome to the board

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  3. #3
    Registered User
    Join Date
    09-07-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Lookup

    Quote Originally Posted by arthurbr View Post
    Hi and welcome to the board

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!


    I've attached the spreadsheet. Don't know how to do a dummy workbook. The score under math, reading, and science should do the same as the score for English. If they get 53 or 54 right in Math, for instance, it's still a grade of 30.


    thanks
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,288

    Re: Lookup

    1st:
    Form help on lookup:
    The values in lookup_vector must be placed in ascending order: ...,-2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise, LOOKUP may not give the correct value. Uppercase and lowercase text are equivalent.
    So your existing formula isn't going to work reliably

    2nd
    Assuming we are going to replace your formula with index/match, also from help:
    •If match_type is -1, MATCH finds the smallest value that is greater than or equal to lookup_value. Lookup_array must be placed in descending order: TRUE, FALSE, Z-A, ...2, 1, 0, -1, -2, ..., and so on.
    This means we don't have to list all the scores that would lead to a certain grade, just the ones at the boundary.

    Based on these two things:
    1. Use this replacement formula:
    =INDEX(A56:A91,MATCH(E46,B56:B91,-1)) and adjust as appropriate

    2. Revise your data, put the largest of all the comma-separated numbers into each cell
    63, 64 --> 64
    46, 47, 48 --> 48

    3. Don't leave any gaps
    Math should read:
    60
    60
    59

    or

    60
    59
    59

    but not

    60
    0
    59

    Top tips:
    If you set your font size to ten instead of eight you can zoom out a bit so you don't have those enormous row numbers and column letters.
    I highly recommend those help files

    HTH
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0