+ Reply to Thread
Results 1 to 3 of 3

table, index, array, match, lookup?

  1. #1
    Registered User
    Join Date
    08-02-2006
    Posts
    19

    table, index, array, match, lookup?

    _K____L____ _M ____N ____O ____P .............
    1____100___200_ __300 __400 ___500
    2____19000_19000_19000_19000_19000
    3____19240_19480_19720_19960_20200
    4____19600_20200_20800_21400_22000

    I have a value of 299 in H3 i wish to compare to L1:P1. The correct column is M.
    With that established, I now want to compare a value of 19490 in I3 to the numbers in column M. I wish to return the row number. In this case, row 3.
    How can I accomplish this? I have tried several suggestions. None have worked.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hi spxer,

    For your example do you want the result to be 3 or M3?

    For the former

    =MATCH(I3,INDEX(L1:P4,0,MATCH(H3,L1:P1)))

    or the latter

    =ADDRESS(MATCH(I3,INDEX(L1:P4,0,MATCH(H3,L1:P1))),MATCH(H3,L1:P1)+COLUMN(L1)-1,4)

  3. #3
    Harlan Grove
    Guest

    Re: table, index, array, match, lookup?

    spxer wrote...
    >_K____L____M ____N ____O ____P .............
    >1____100___200___300 __ 400 ___500
    >2____19000_19000_19000_19000_19000
    >3____19240_19480_19720_19960_20200
    >4____19600_20200_20800_21400_22000
    >
    >I have a value of 299 in H3 i wish to compare to L1:P1. The correct
    >column is M.
    >With that established, I now want to compare a value of 19490 in I3 to
    >the numbers in column M. I wish to return the row number. In this case,
    >row 3.
    >How can I accomplish this? I have tried several suggestions. None have
    >worked.


    Don't start new threads. Follow-up in the threads you've already begun.

    Given the specs above,

    =MATCH(I3,INDEX(K1:O4,0,MATCH(H3,K1:O1)))

    returns 3, and FTHOI,

    =LOOKUP(I3,INDEX(K1:O4,0,MATCH(H3,K1:O1)))

    returns 19480.


+ 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