![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
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 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
Quote:
=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 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|