+ Reply to Thread
Results 1 to 5 of 5

Lookup function for a value that has multiple instances

Hybrid View

  1. #1
    Rafat
    Guest

    Lookup function for a value that has multiple instances

    I am working on a case that is of the following similar nature:

    Col A Col B Col C
    Row 1 Apple 1 ABC
    Row 2 Bananna 2 DEF
    Row 3 Cherry 1 GHI
    Row 4 Cherry 4 JKL
    Row 5 Cherry 6 MNO
    Row 6 Strawberry 3 PQR

    I want to lookup the value in Col C that has "Cherry" in Col A and "6" in
    'Col C'. Ofcourse the answer is "MNO", but I am unable to accomplish this
    with VLOOKUP. Is there any alternative solution to this.

    Thanks,
    Rafat Inayat Elahi

  2. #2
    Ardus Petus
    Guest

    Re: Lookup function for a value that has multiple instances

    =INDEX($C$1:$C$6,MATCH(1,(A1:A6="Cherry")*(B1:B6=6),0))
    This is an array formula, to be validated with Ctrl+Shift+Enter, not just
    Enter.

    HTH
    --
    AP

    "Rafat" <Rafat@discussions.microsoft.com> a écrit dans le message de news:
    0CB10A4F-0A4D-456D-975B-FDCC3C6A0AEE@microsoft.com...
    >I am working on a case that is of the following similar nature:
    >
    > Col A Col B Col C
    > Row 1 Apple 1 ABC
    > Row 2 Bananna 2 DEF
    > Row 3 Cherry 1 GHI
    > Row 4 Cherry 4 JKL
    > Row 5 Cherry 6 MNO
    > Row 6 Strawberry 3 PQR
    >
    > I want to lookup the value in Col C that has "Cherry" in Col A and "6" in
    > 'Col C'. Ofcourse the answer is "MNO", but I am unable to accomplish this
    > with VLOOKUP. Is there any alternative solution to this.
    >
    > Thanks,
    > Rafat Inayat Elahi




  3. #3
    Rafat
    Guest

    Re: Lookup function for a value that has multiple instances

    Isnt it possible to have the results in one cell rather than displaying a
    full column of a single result?

    "Ardus Petus" wrote:

    > =INDEX($C$1:$C$6,MATCH(1,(A1:A6="Cherry")*(B1:B6=6),0))
    > This is an array formula, to be validated with Ctrl+Shift+Enter, not just
    > Enter.
    >
    > HTH
    > --
    > AP
    >
    > "Rafat" <Rafat@discussions.microsoft.com> a écrit dans le message de news:
    > 0CB10A4F-0A4D-456D-975B-FDCC3C6A0AEE@microsoft.com...
    > >I am working on a case that is of the following similar nature:
    > >
    > > Col A Col B Col C
    > > Row 1 Apple 1 ABC
    > > Row 2 Bananna 2 DEF
    > > Row 3 Cherry 1 GHI
    > > Row 4 Cherry 4 JKL
    > > Row 5 Cherry 6 MNO
    > > Row 6 Strawberry 3 PQR
    > >
    > > I want to lookup the value in Col C that has "Cherry" in Col A and "6" in
    > > 'Col C'. Ofcourse the answer is "MNO", but I am unable to accomplish this
    > > with VLOOKUP. Is there any alternative solution to this.
    > >
    > > Thanks,
    > > Rafat Inayat Elahi

    >
    >
    >


  4. #4
    Ardus Petus
    Guest

    Re: Lookup function for a value that has multiple instances

    The formula I gave you should be entered in ONE cell
    (and validated with Ctrl+Shift+Enter)

    --
    AP

    "Rafat" <Rafat@discussions.microsoft.com> a écrit dans le message de news:
    3B71E3D4-854D-49E0-8270-3A04DB8FC55B@microsoft.com...
    > Isnt it possible to have the results in one cell rather than displaying a
    > full column of a single result?
    >
    > "Ardus Petus" wrote:
    >
    >> =INDEX($C$1:$C$6,MATCH(1,(A1:A6="Cherry")*(B1:B6=6),0))
    >> This is an array formula, to be validated with Ctrl+Shift+Enter, not just
    >> Enter.
    >>
    >> HTH
    >> --
    >> AP
    >>
    >> "Rafat" <Rafat@discussions.microsoft.com> a écrit dans le message de
    >> news:
    >> 0CB10A4F-0A4D-456D-975B-FDCC3C6A0AEE@microsoft.com...
    >> >I am working on a case that is of the following similar nature:
    >> >
    >> > Col A Col B Col C
    >> > Row 1 Apple 1 ABC
    >> > Row 2 Bananna 2 DEF
    >> > Row 3 Cherry 1 GHI
    >> > Row 4 Cherry 4 JKL
    >> > Row 5 Cherry 6 MNO
    >> > Row 6 Strawberry 3 PQR
    >> >
    >> > I want to lookup the value in Col C that has "Cherry" in Col A and "6"
    >> > in
    >> > 'Col C'. Ofcourse the answer is "MNO", but I am unable to accomplish
    >> > this
    >> > with VLOOKUP. Is there any alternative solution to this.
    >> >
    >> > Thanks,
    >> > Rafat Inayat Elahi

    >>
    >>
    >>




  5. #5
    Registered User
    Join Date
    03-15-2005
    Posts
    23
    Quote Originally Posted by Ardus Petus
    The formula I gave you should be entered in ONE cell
    (and validated with Ctrl+Shift+Enter)

    --
    AP

    "Rafat" <Rafat@discussions.microsoft.com> a écrit dans le message de news:
    3B71E3D4-854D-49E0-8270-3A04DB8FC55B@microsoft.com...
    > Isnt it possible to have the results in one cell rather than displaying a
    > full column of a single result?
    >
    > "Ardus Petus" wrote:
    >
    >> =INDEX($C$1:$C$6,MATCH(1,(A1:A6="Cherry")*(B1:B6=6),0))
    >> This is an array formula, to be validated with Ctrl+Shift+Enter, not just
    >> Enter.
    >>
    >> HTH
    >> --
    >> AP
    >>
    >> "Rafat" <Rafat@discussions.microsoft.com> a écrit dans le message de
    >> news:
    >> 0CB10A4F-0A4D-456D-975B-FDCC3C6A0AEE@microsoft.com...
    >> >I am working on a case that is of the following similar nature:
    >> >
    >> > Col A Col B Col C
    >> > Row 1 Apple 1 ABC
    >> > Row 2 Bananna 2 DEF
    >> > Row 3 Cherry 1 GHI
    >> > Row 4 Cherry 4 JKL
    >> > Row 5 Cherry 6 MNO
    >> > Row 6 Strawberry 3 PQR
    >> >
    >> > I want to lookup the value in Col C that has "Cherry" in Col A and "6"
    >> > in
    >> > 'Col C'. Ofcourse the answer is "MNO", but I am unable to accomplish
    >> > this
    >> > with VLOOKUP. Is there any alternative solution to this.
    >> >
    >> > Thanks,
    >> > Rafat Inayat Elahi

    >>
    >>
    >>
    Ardus, is there a way to use this similar to a VLOOKUP function. I want to search for matches of 2 cells in a row in a large spreadsheet, but I want to automatically get the contents of the cells to match simialr to dragging the VLOOPUP function.

    Can this be done.

    Thanks in advance for the help,
    Michael

+ 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