ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Concatenate and use cell value in formula (https://www.excelbanter.com/excel-discussion-misc-queries/215393-concatenate-use-cell-value-formula.html)

gibbylinks

Concatenate and use cell value in formula
 
I have defined 16 ranges named Range00 to Range44.

Then I have two cells, one selects the first part, i.e
Range0,Range1,Range2,Range3 & Range4 then the second selects 0,1,2,3 or 4
dependent on another cell value.

I want to combine these two cell values and then use the result in a vlookup
function.

Can I do this ?

Thanks

Elkar

Concatenate and use cell value in formula
 
Yes, the INDIRECT function should work for you:

Let's say your first cell is A1 and second cell is A2, you'd use something
like:

=VLOOKUP(123,INDIRECT(A1 & A2),2,False)

HTH,
Elkar




"gibbylinks" wrote:

I have defined 16 ranges named Range00 to Range44.

Then I have two cells, one selects the first part, i.e
Range0,Range1,Range2,Range3 & Range4 then the second selects 0,1,2,3 or 4
dependent on another cell value.

I want to combine these two cell values and then use the result in a vlookup
function.

Can I do this ?

Thanks



All times are GMT +1. The time now is 10:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com