Offset and Indirect

zalik22

Board Regular
Joined
Dec 14, 2010
Messages
111
Office Version
  1. 365
Platform
  1. Windows
Hi, I have the following formula:

=IF(INDIRECT("'"&$B2&"'!"&"$h$3")="","",INDIRECT("'"&$B2&"'!"&"$h$3"))

I need to increment B2 to B7 when I drag down but it's not working, can i place 5 in another cell and use a formula to change the B2 value to B2 and the cell reference(5)? Thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
What cell is the first formula going into (exact address, please)?
 
Upvote 0
It starts in column C2, but I will need to drag down and to the right.
=IF(INDIRECT("'"&$B2+i3&"'!"&"$h$3")="","",INDIRECT("'"&$B2+i3&"'!"&"$h$3"))

I want something like this, where i3=5. I know my syntax is wrong since you cannot put B2+i3.
 
Upvote 0
=IF(INDIRECT("'"&$B2+i3&"'!"&"$h$3")="","",INDIRECT("'"&$B2+i3&"'!"&"$h$3"))

I want something like this, where i3=5. I know my syntax is wrong since you cannot put B2+i3.
You don't need a helper cell. Simply replace the references of "B2" in your formula with this, and it should do that you want:
Excel Formula:
OFFSET($B$2,(ROW()-2)*5,0)
 
Upvote 1
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,254
Messages
6,123,893
Members
449,131
Latest member
leobueno

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