lookup in a lookup

G

Guest

Guest
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.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top