Formula Question - Reference content of a cell within a formula

Stevon

New Member
Joined
Apr 9, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

Is there a way to embed the contents of a cell into a formula?

For Example:

Lets say the content of Cell A1 = 7 and B1 = 3

I wanted to write a VLOOKUP that references the content of these cells within the formula

VLOOKUP($B5,$U$CELL_A1:$V$CELL_B1,2,FALSE)

Is this possible?

?T
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Use the INDIRECT function
=VLOOKUP($B5,INDIRECT("$U$"&A1&":$V$"&B1),2,FALSE)


Test in a separate cell befoore putting it inside vlookup to see if the string is correct
=INDIRECT("$U$"&A1&":$V$"&B1)

The values supplied in post1 return the following string, which looks unusual
$U$7:$V$3

you probably want this
$U$3:$V$7

amend the string inside INDIRECT or switch the values A1 = 3 and B1 =7
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,483
Messages
6,125,063
Members
449,206
Latest member
Healthydogs

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