+ Reply to Thread
Results 1 to 2 of 2

RETURNING A SPECIFIC VALUE FROM A LOOKUP FORMULA

Hybrid View

  1. #1
    Drew
    Guest

    RETURNING A SPECIFIC VALUE FROM A LOOKUP FORMULA

    I understand how to use the vlookup/hlookup function in Excel, however the
    problem that I am encountering is that when I do a vlookup it returns the
    result for the first occurence of the value being looked up. Is there
    another formula that will return all of the results for that lookup value, or
    at least one that will return a specific result like the max/min for a given
    value.

    Thanks!
    Drew

  2. #2
    Dave Peterson
    Guest

    Re: RETURNING A SPECIFIC VALUE FROM A LOOKUP FORMULA

    There are other functions that may work the way you want:

    =sumif(C1:C10,"a",D1:D10)

    =max(if(c1:c10="a",d1:d10))
    =min(if(c1:c10="a",d1:d10))

    The last two are array formulas. Hit ctrl-shift-enter instead of enter. If you
    do it correctly, excel will wrap curly brackets {} around your formula. (don't
    type them yourself.)

    Adjust the range to match--but you can't use the whole column.



    Drew wrote:
    >
    > I understand how to use the vlookup/hlookup function in Excel, however the
    > problem that I am encountering is that when I do a vlookup it returns the
    > result for the first occurence of the value being looked up. Is there
    > another formula that will return all of the results for that lookup value, or
    > at least one that will return a specific result like the max/min for a given
    > value.
    >
    > Thanks!
    > Drew


    --

    Dave Peterson

+ 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.6.0 RC 1