+ Reply to Thread
Results 1 to 8 of 8

LOOKUP Function not working?

  1. #1
    Registered User
    Join Date
    03-14-2019
    Location
    UK
    MS-Off Ver
    Microsoft 2016 for Mac
    Posts
    2

    Post LOOKUP Function not working?

    Hi all, I am having issues with quite a simple LOOKUP function on my Spreadsheet. I would appreciate some help, if possible.

    I am trying to create a simple LOOKUP function (cell E4 that collects data from D4) that takes a value from a range of D,M,P,N,U (Distinction, Merit, Pass, Near Pass and Unclassified) and reply a result of a point system 8, 6, 4, 2, 0.

    D = 8
    M = 6
    P = 4
    N = 2
    U = 0

    When I use this code =LOOKUP(D4,'Data Sheets'!A1:A5,'Data Sheets'!B1:B5) all of the grades work correctly and return the correct data apart from N which returns 6.

    Can someone please help. The spreadsheet it attached.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by leach_18; 03-14-2019 at 06:28 PM. Reason: Adding images as an example.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: LOOKUP Function not working?

    Here's the problem...

    Important: The values in lookup_vector must be placed in ascending order: ..., -2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise, LOOKUP might not return the correct value. Uppercase and lowercase text are equivalent.
    You list

    D = 8
    M = 6
    P = 4
    N = 2
    U = 0

    But that's not what is in your spreadsheet
    U 0
    NP 2
    P 4
    M 6
    D 8
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    03-14-2019
    Location
    UK
    MS-Off Ver
    Microsoft 2016 for Mac
    Posts
    2

    Re: LOOKUP Function not working?

    Amazing, worked like a treat. Thank you.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: LOOKUP Function not working?

    You are very welcome and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: LOOKUP Function not working?

    LOOKUP require lookup_vector must be in A-Z order; the list should be:
    D
    M
    NP
    P
    U

    With your lookup issues , just using VLOOKUP instead
    =VLOOKUP($E$4,'Data Sheets'!$A$1:$B$5,2,0)*F4
    Quang PT

  6. #6
    Registered User
    Join Date
    03-24-2019
    Location
    Coimbatore
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: LOOKUP Function not working?

    Hi Jeffreybrown,

    I have an issue with lookup. The right values are not being returned back.
    I'm trying to get some values back based on date match. I read somewhere in your forum that date has to be in a certain format for lookup to work, so I changed the date to a general number. Lookup still does not work properly.

    I'm attaching the woksheet


    Thanks in adavance for your help,

    Vijay
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,794

    Re: LOOKUP Function not working?

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Please start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    03-24-2019
    Location
    Coimbatore
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: LOOKUP Function not working?

    Hi AliGW,

    Thanks for the response. I missed out reading the rule.
    I will start a new thread

    Vijay

+ 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. why in match function, lookup value not working?
    By mingali in forum Excel General
    Replies: 1
    Last Post: 09-01-2009, 06:44 AM
  2. Transfer of LOOKUP function not working!
    By nunya in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2007, 01:51 PM
  3. Lookup Function not working
    By hcamelion in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2006, 02:25 AM
  4. [SOLVED] Lookup function still not working correctly
    By Mike K in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. Lookup function still not working correctly
    By Biff in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 AM
  6. [SOLVED] Lookup function still not working correctly
    By Mike K in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Lookup function still not working correctly
    By Mike K in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Lookup function still not working correctly
    By Mike K in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-31-2005, 10:05 PM

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