Help With INDIRECT Formula

danielhitch

New Member
Joined
Sep 8, 2008
Messages
48
Hi.

This is my first try at using an INDIRECT formula and I cannot get it functioning quite how I want it.

My formula at present is:

=IF(INDIRECT("'"&$A7&"'"&"!"&"C$78")=0,"",INDIRECT("'"&$A7&"'"&"!"&"C$78"))

Cell A7 contains text which relates to a sheet name in my workbook.
C78 is the cell in which I want the value from.

My problem is that I want to copy the formula both across, and down to populate the table.

The reference to A7 works perfectly. But, the reference to C78 does not change its value.

Where am I going wrong?

Thanks in advance.

Dan.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
The ref to C78 doesn't change because it's in quotes, so it's treated as text. Try something like this:
INDIRECT(ADDRESS(78,COLUMN(C1),,,$A7))
 
Upvote 0
you tryed C78 instead of C$78 ?
It's in text, so that won't make any difference.

Danielhitch, you could use ADDRESS(78,3+COLUMN()-COLUMN($B:$B),2) instead of "C$78", replacing $B:$B with whatever column the formula resides in.

... or use njimack's even simpler formula of course.
 
Upvote 0
You can only do it that way (make the text portion of INDIRECT dynamic) if you use R1C1 reference style, i.e. if your formula starting in column A

INDIRECT("'"&$A7&"'"&"!"&"R78C[2]",0)
 
Upvote 0
Thanks guys!

Ive changed my formula to:

=IF(INDIRECT(ADDRESS(78,COLUMN(C1),,,$A7))=0,"",INDIRECT(ADDRESS(78,COLUMN(C1),,,$A7)))

and it seems to work as I wish.

Regards,

Dan.
 
Upvote 0
Is your data numeric or text?

Which cell is the formula located in? (first cell).
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,270
Members
452,902
Latest member
Knuddeluff

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