Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Louisville, Kentucky, USA
    Posts
    605
    Thanks
    0
    Thanked 0 Times in 0 Posts

    MATCH, INDEX, OFFSET (A2K3)

    Good Morning Everyone,

    I need to Match the column in worksheet2 to a column in worksheet1 then match the row in the worksheet2 to a row in the worksheet1 and index the value in the corresponding column/row of the worksheet1.

    I'm certain I need to apply the MATCH and INDEX and probably the OFFSET but my logic doesn't appear to be working so well. Here's what I have so far.

    <hr>=IF(ISNUMBER(MATCH(B1,'Sheet2'!B1:C21,0)),INDE X('Sheet1'!B2:B22,MATCH(B1,'Sheet2'!A1:A22,0)),0)< hr>

    Can someone please provide me with insight to this? I'm attaching a sample to better explain what I need to do.
    Attached Files Attached Files
    Roberta Price <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  2. #2
    3 Star Lounger
    Join Date
    Nov 2005
    Location
    Asia Pacific, Bangkok Metropolis
    Posts
    378
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MATCH, INDEX, OFFSET (A2K3)

    Hi

    Does the attached does what you want?
    Attached Files Attached Files
    Hope this is helpful

    francis, <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

    My Reading

    Pivot Table 101
    Pivot Table
    Array

  3. #3
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Louisville, Kentucky, USA
    Posts
    605
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MATCH, INDEX, OFFSET (A2K3)

    Yes it does...thank you very much.
    Roberta Price <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  4. #4
    3 Star Lounger
    Join Date
    Nov 2005
    Location
    Asia Pacific, Bangkok Metropolis
    Posts
    378
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MATCH, INDEX, OFFSET (A2K3)

    Thanks for the feedback

    another alternative if you want to use Index...Match as in your original post
    =IF(ISNA(INDEX(Sheet2!B2:B21,MATCH(Sheet1!A2,Sheet 2!A2:A21,0))),"no patient",(INDEX(Sheet2!B2:B21,MATCH(Sheet1!A2,Shee t2!A2:A21,0))))
    Hope this is helpful

    francis, <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

    My Reading

    Pivot Table 101
    Pivot Table
    Array

Posting Permissions

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