Consulting

Results 1 to 3 of 3

Thread: Solved: Combine H and V lookup or better idea?

  1. #1
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location

    Solved: Combine H and V lookup or better idea?

    I have the following workbook example. I'm trying to link the yellow cells on 'Linked' to the corresponding cells on 'Hardcoded'. There's no gaurantee that the descriptions in A:A or in 1:1 will be in the same order so doing a simple vlookup wont work because columnindex can change.

    I'm trying to figure out how to link it where it would look the formula would look for the equivalent cell in the hardcoded sheet that has the same Column and Row header.

    Thanks.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =INDEX(HardCode!$A$1:$E$5,MATCH(Linked!F$1,HardCode!$1:$1,0),MATCH(Linked!$ A2,HardCode!$A:$A,0))
    ____________________________________________
    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 Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    =INDEX(HardCode!$A$1:$E$5,MATCH(Linked!$A2,HardCode!$A:$A,0),MATCH(Linked!F $1,HardCode!$1:$1,0))

    Thanks. It was nearly right! I didn't know a/b index.

Posting Permissions

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