Consulting

Results 1 to 5 of 5

Thread: Solved: reverse lookup

  1. #1
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location

    Angry Solved: reverse lookup

    help...

    i have some data and what i need is to reverse lookup.
    is it possible to do?

    eg :- lookup 2 will bring up "32" & "name d"

    a1 = name a
    a2 = name d
    a3 = name c
    a4 = name b

    b1 = 26
    b2 = 32
    b3 = 27
    b4 = 50

    c1 = 1
    c2 = 2
    c3 = 3
    c4 = 4

    many thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =INDEX(A:A,MATCH(2,C:C,0))

    etc.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location

    update

    just worked out the first bit to the problem.

    cell e1 = 2
    cell f1 = "=INDEX(A1:A4,MATCH(E1,C1:C4,0))"
    cell g1 = "=INDEX(B1:B4,MATCH(E1,C1:C4,0))"

    what i need now is to get all the data with 2 in them, one after another.

    a1 = name a
    a2 = name d
    a3 = name c
    a4 = name b

    b1 = 26
    b2 = 32
    b3 = 27
    b4 = 50

    c1 = 1
    c2 = 2
    c3 = 2
    c4 = 4

    thanks

  4. #4
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Select headers | Data | Filter | Autofilter

  5. #5
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    just done that late last night.

    got it working...

    thanks for all the help....

Posting Permissions

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