Consulting

Results 1 to 6 of 6

Thread: Solved: Left Lookup

  1. #1
    VBAX Regular
    Joined
    Nov 2007
    Posts
    29
    Location

    Solved: Left Lookup

    Please refer to attachment.

    I have tried numerous suggestions from various web sites buy none work. Maybe someone here could make a sugestion.

    Column A contains ever changing random values (hence, cannot be sorted). Column B values are fixed.

    I need to determine the maximum value in A1:A10 and return its corresponding value from B1:B10. The figures have to stay in their respective columns (hence no vlookup).

    Any suggestions greatly appreciated.

    Grant.

  2. #2
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    273
    Location
    this function is working for me

    =VLOOKUP(MAX(A1:A10),A1:B10,2,FALSE)

    give it a try

  3. #3
    VBAX Regular
    Joined
    Nov 2007
    Posts
    29
    Location
    Figment,

    Thank you for the suggestion. Seems to work and, against conventional wisdom, it's a =vlookup.

    Before I can regard this as solved it will need running when the values are constantly changing (Thursday am).

    I've been using =LOOKUP(MAX(A1:A10),B1:B10) but the results were erratic. However, all other solutions never worked.

    Will keep you informed.

    Thanks, once again.

    Grant.

  4. #4
    VBAX Mentor asingh's Avatar
    Joined
    Jul 2005
    Posts
    307
    Location
    Hi,

    Attached is a sheet which simulates column A values changing..and returns the corresponding value from columns B which are fixed. Use F9 to refresh it....!

    regards,

    asingh

  5. #5
    VBAX Regular
    Joined
    Nov 2007
    Posts
    29
    Location
    Asingh,

    I'v also put yours on my sheet for testing. The conditional format feature is a simple but neat touch.

    Thank you.

    Grant.

  6. #6
    VBAX Regular
    Joined
    Nov 2007
    Posts
    29
    Location
    Gentlemen,

    Both worked fine. I chose one at random.

    Thank you to you both.

    Grant.

Posting Permissions

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