Using Concatenate to populate the reference of an Offset

tiredExcelUser

New Member
Joined
Feb 9, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to build an output in my model where a user selects a tab name from a dropdown in cell A1 and cell address in cell A2 and the offset formulas automatically update. I thought this formula would work but it doesn't

=offset(CONCATENATE("'"&A1&"'!"&A2),1,0)

any help would be greatly appreciated.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Is this what you mean? If not, please give use a small set of sample data and the expected result with XL2BB
Excel Formula:
=OFFSET(INDIRECT("'"&A1&"'!"&A2),1,0)
 
Upvote 0
Solution
Two things:
1. You do NOT need to use both CONCATENATE and &, as they both do the same thing (choose one or the other)
2. You need to use INDIRECT when build range references to turn them from a string into a range.

Try:
Excel Formula:
=OFFSET(INDIRECT("'"&A1&"'!"&A2),1,0)

EDIT: Too slow! Looks like Peter already posted the formula. I will leave my post though, for the comments I included which may aid in your learning.
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,069
Members
449,092
Latest member
ipruravindra

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