lookup in a lookup

  • Thread starter Thread starter Guest
  • Start date Start date
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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,223,375
Messages
6,171,738
Members
452,419
Latest member
mapa

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