ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   formula range (https://www.excelbanter.com/excel-worksheet-functions/146645-formula-range.html)

ADK

formula range
 
is there any way to make A2 in the formula a function of a cell value?

=VLOOKUP($B$1,A2:D1969,3,FALSE)


Example: if F1 = the value of: "A50"

So the formula in A1 would be:

=VLOOKUP($B$1,A50:D1969,3,FALSE)



Roger Govier

formula range
 
Hi

Try
=VLOOKUP($B$1,INDIRECT("'"&F1&"'!:D1969"),3,FALSE)

Note the quotes
" ' "&F1& " ' !:D1969"

--
Regards

Roger Govier


"ADK" wrote in message
...
is there any way to make A2 in the formula a function of a cell value?

=VLOOKUP($B$1,A2:D1969,3,FALSE)


Example: if F1 = the value of: "A50"

So the formula in A1 would be:

=VLOOKUP($B$1,A50:D1969,3,FALSE)




bj

formula range
 
I don/t think the ' and ! should be there.
This is a cell reference, not a sheet reference

Is there a benefit, I am not aware of?

"Roger Govier" wrote:

Hi

Try
=VLOOKUP($B$1,INDIRECT("'"&F1&"'!:D1969"),3,FALSE)

Note the quotes
" ' "&F1& " ' !:D1969"

--
Regards

Roger Govier


"ADK" wrote in message
...
is there any way to make A2 in the formula a function of a cell value?

=VLOOKUP($B$1,A2:D1969,3,FALSE)


Example: if F1 = the value of: "A50"

So the formula in A1 would be:

=VLOOKUP($B$1,A50:D1969,3,FALSE)





ShaneDevenshire

formula range
 
Hi,

Here is a slightly simplier formula:

=VLOOKUP($B$1,INDIRECT(F1&":D1969"),3,FALSE)

--
Cheers,
Shane Devenshire


"ADK" wrote:

is there any way to make A2 in the formula a function of a cell value?

=VLOOKUP($B$1,A2:D1969,3,FALSE)


Example: if F1 = the value of: "A50"

So the formula in A1 would be:

=VLOOKUP($B$1,A50:D1969,3,FALSE)




Roger Govier

formula range
 
You are quite correct. My mistake.
So used to dealing with sheets, I type it automatically<g

--
Regards

Roger Govier


"bj" wrote in message
...
I don/t think the ' and ! should be there.
This is a cell reference, not a sheet reference

Is there a benefit, I am not aware of?

"Roger Govier" wrote:

Hi

Try
=VLOOKUP($B$1,INDIRECT("'"&F1&"'!:D1969"),3,FALSE)

Note the quotes
" ' "&F1& " ' !:D1969"

--
Regards

Roger Govier


"ADK" wrote in message
...
is there any way to make A2 in the formula a function of a cell
value?

=VLOOKUP($B$1,A2:D1969,3,FALSE)


Example: if F1 = the value of: "A50"

So the formula in A1 would be:

=VLOOKUP($B$1,A50:D1969,3,FALSE)







ADK

formula range
 
Thanks...this one worked great!




"ShaneDevenshire" wrote in
message ...
Hi,

Here is a slightly simplier formula:

=VLOOKUP($B$1,INDIRECT(F1&":D1969"),3,FALSE)

--
Cheers,
Shane Devenshire


"ADK" wrote:

is there any way to make A2 in the formula a function of a cell value?

=VLOOKUP($B$1,A2:D1969,3,FALSE)


Example: if F1 = the value of: "A50"

So the formula in A1 would be:

=VLOOKUP($B$1,A50:D1969,3,FALSE)







All times are GMT +1. The time now is 02:48 AM.

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