How do I use a cell reference within a cell reference?

%3CLINGO-SUB%20id%3D%22lingo-sub-2044022%22%20slang%3D%22en-US%22%3EHow%20do%20I%20use%20a%20cell%20reference%20within%20a%20cell%20reference%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044022%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20what%20I%20want%20to%20do.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20return%20a%20value%20from%20column%20B%20but%20the%20row%20number%20will%20be%20dependent%20on%20what%20the%20user%20enters%20into%20cell%20F5%2C%20for%20example.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20instead%20of%20%3DB5%20or%20some%20other%20specific%20cell%20in%20column%20B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20column%20B%20and%20whatever%20value%20is%20in%20F5%20for%20the%20row%20number.%20so%20%3DB%26amp%3BF5%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20the%20reference%20is%20to%20cell%20that%20is%20column%20B%20but%20variable%20to%20whatever%20is%20in%20cell%20f5%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2044022%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2044113%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20I%20use%20a%20cell%20reference%20within%20a%20cell%20reference%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044113%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F922542%22%20target%3D%22_blank%22%3E%40alectimmerman%3C%2FA%3E%26nbsp%3BThat%20could%20be%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DINDEX(B%3AB%2CF5)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Here is what I want to do. 

 

I want to return a value from column B but the row number will be dependent on what the user enters into cell F5, for example.

 

So instead of =B5 or some other specific cell in column B

 

I want column B and whatever value is in F5 for the row number. so =B&F5  

So the reference is to cell that is column B but variable to whatever is in cell f5

3 Replies

@alectimmerman That could be:

 

 

=INDEX(B:B,F5)

or

=INDIRECT("B"&F5)

 

 

 

 

Thanks!!! Both worked exactly, and so easy.

 

@Riny_van_Eekelen 

@alectimmerman Great! Glad I could help solve your problem.