lookup in a lookup
Upcoming Power Excel Seminars
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: lookup in a lookup

  1. #1
    Guest

    Default

     
    Cell A2 is as follows:
    =IF(ISNA(VLOOKUP(I9,Activities!$AC$2:$BR$9,2,FALSE))=TRUE,"",VLOOKUP(I9,Activities!$AC$2:$BR$9,2,FALSE))

    Is there any lookup function I can use to replace the $AC$2:$BR$9 cell range so that the cell range is the cell containing the same value entered in A1 found in a sequential range of horizontal values? BR9 will always be the final cell in the range and the result will always be the value in the 2nd column. The AC2 will vary with the value in cell A1.

    Thanks.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Denver, CO
    Posts
    1,743
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    On 2002-03-05 10:17, Anonymous wrote:
    Cell A2 is as follows:
    =IF(ISNA(VLOOKUP(I9,Activities!$AC$2:$BR$9,2,FALSE))=TRUE,"",VLOOKUP(I9,Activities!$AC$2:$BR$9,2,FALSE))

    Is there any lookup function I can use to replace the $AC$2:$BR$9 cell range so that the cell range is the cell containing the same value entered in A1 found in a sequential range of horizontal values? BR9 will always be the final cell in the range and the result will always be the value in the 2nd column. The AC2 will vary with the value in cell A1.

    Thanks.
    see if
    =IF(COUNTIF(INDIRECT("activities!"&A1&":"&LEFT(A1,1+LEN(A1)>2)&"9"),I9),VLOOKUP(I9,INDIRECT("activities!"&A1&":BR9"),2,0),"")

    will work for you.

    good luck

    edited version #1
    =IF(COUNTIF(INDIRECT("activities!"&A1&":"&LEFT(A1,1+(LEN(A1)>2))&"9"),I9),VLOOKUP(I9,INDIRECT("activities!"&A1&":BR9"),2,0),"")

    [ This Message was edited by: IML on 2002-03-05 10:38 ]

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com