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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,614
Messages
6,120,519
Members
448,968
Latest member
Ajax40

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