PC Review


Reply
Thread Tools Rate Thread

Can you use INDIRECT in 3-D references?

 
 
=?Utf-8?B?R2RjcHJvZ3Jj?=
Guest
Posts: n/a
 
      13th Jul 2006
For example
=SUM(INDIRECT(C10))
where C10 would contain
="Sheet2:"&"Sheet3!"&"A"&ROW()
always returns #REF!.
However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.
 
Reply With Quote
 
 
 
 
Harlan Grove
Guest
Posts: n/a
 
      13th Jul 2006
Gdcprogrc wrote...
>For example
>=SUM(INDIRECT(C10))
>where C10 would contain
>="Sheet2:"&"Sheet3!"&"A"&ROW()
>always returns #REF!.

....

No. INDIRECT can only return range references. 3D references are never
range references.

You could use a list of worksheet names, e.g., WSLST referring to

={"Sheet2","Sheet3"}

then use the formula

=SUMPRODUCT(N(INDIRECT("'"&WSLST&"'!A"&ROW()))

 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      13th Jul 2006
Hi!

Try it like this:

C10 = ="A"&ROW()

=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(INDIRECT("2:3"))&"!"&C10)))

Biff

"Gdcprogrc" <(E-Mail Removed)> wrote in message
news:E0898A3A-B2C8-42BA-A8D9-(E-Mail Removed)...
> For example
> =SUM(INDIRECT(C10))
> where C10 would contain
> ="Sheet2:"&"Sheet3!"&"A"&ROW()
> always returns #REF!.
> However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.



 
Reply With Quote
 
=?Utf-8?B?R2RjcHJvZ3Jj?=
Guest
Posts: n/a
 
      13th Jul 2006
Thanks Biff. That seems to work.
What does one do if your worksheets are named, June, July, August etc.?

"Biff" wrote:

> Hi!
>
> Try it like this:
>
> C10 = ="A"&ROW()
>
> =SUMPRODUCT(N(INDIRECT("Sheet"&ROW(INDIRECT("2:3"))&"!"&C10)))
>
> Biff
>
> "Gdcprogrc" <(E-Mail Removed)> wrote in message
> news:E0898A3A-B2C8-42BA-A8D9-(E-Mail Removed)...
> > For example
> > =SUM(INDIRECT(C10))
> > where C10 would contain
> > ="Sheet2:"&"Sheet3!"&"A"&ROW()
> > always returns #REF!.
> > However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.

>
>
>

 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      13th Jul 2006
>What does one do if your worksheets are named, June, July, August etc.?

In that case, use Harlan's suggestion.

Biff

"Gdcprogrc" <(E-Mail Removed)> wrote in message
news:2BAA6BBE-E70F-4A80-B7F0-(E-Mail Removed)...
> Thanks Biff. That seems to work.
> What does one do if your worksheets are named, June, July, August etc.?
>
> "Biff" wrote:
>
>> Hi!
>>
>> Try it like this:
>>
>> C10 = ="A"&ROW()
>>
>> =SUMPRODUCT(N(INDIRECT("Sheet"&ROW(INDIRECT("2:3"))&"!"&C10)))
>>
>> Biff
>>
>> "Gdcprogrc" <(E-Mail Removed)> wrote in message
>> news:E0898A3A-B2C8-42BA-A8D9-(E-Mail Removed)...
>> > For example
>> > =SUM(INDIRECT(C10))
>> > where C10 would contain
>> > ="Sheet2:"&"Sheet3!"&"A"&ROW()
>> > always returns #REF!.
>> > However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?R2RjcHJvZ3Jj?=
Guest
Posts: n/a
 
      14th Jul 2006
Thanks, again, Biff. I was hoping not to have to use a defined name because
I wanted the name list length to change or be variable, which requires more
work. But I did like Harlan's suggestion for other applications.

"Biff" wrote:

> >What does one do if your worksheets are named, June, July, August etc.?

>
> In that case, use Harlan's suggestion.
>
> Biff
>
> "Gdcprogrc" <(E-Mail Removed)> wrote in message
> news:2BAA6BBE-E70F-4A80-B7F0-(E-Mail Removed)...
> > Thanks Biff. That seems to work.
> > What does one do if your worksheets are named, June, July, August etc.?
> >
> > "Biff" wrote:
> >
> >> Hi!
> >>
> >> Try it like this:
> >>
> >> C10 = ="A"&ROW()
> >>
> >> =SUMPRODUCT(N(INDIRECT("Sheet"&ROW(INDIRECT("2:3"))&"!"&C10)))
> >>
> >> Biff
> >>
> >> "Gdcprogrc" <(E-Mail Removed)> wrote in message
> >> news:E0898A3A-B2C8-42BA-A8D9-(E-Mail Removed)...
> >> > For example
> >> > =SUM(INDIRECT(C10))
> >> > where C10 would contain
> >> > ="Sheet2:"&"Sheet3!"&"A"&ROW()
> >> > always returns #REF!.
> >> > However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Harlan Grove
Guest
Posts: n/a
 
      14th Jul 2006
Gdcprogrc wrote...
>Thanks, again, Biff. I was hoping not to have to use a defined name because
>I wanted the name list length to change or be variable, which requires more
>work. But I did like Harlan's suggestion for other applications.

....

My technique works with dynamic range names. Just make WSLST *long*,
enter only the worksheet names over which you want to sum at the top of
the list, and create another defined name like WSLST.EFFECTIVE (or
something shorter) defined as

=INDEX(WSLST,1):INDEX(WSLST,COUNTA(WSLST))

(no volatile function calls), and use WSLST.EFFECTIVE in place of
WSLST.

>>"Gdcprogrc" <(E-Mail Removed)> wrote in message

....
>>>What does one do if your worksheets are named, June, July, August etc.?

....

Use TEXT(DATE(2006,{6;7;8;...},1),"mmmm") in place of
"Sheet"&ROW(INDIRECT("2:3")).

 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      14th Jul 2006
You can make the sheet name list a dynamic range list and use Harlan's
formula.......

List the sheet names in a range of cells, say, H1:Hn

Create a dynamic named range for the sheet names.
Goto Insert>Name>Define
Name: Sheet_Names
Refers to:

=OFFSET(Sheet1!$H$1,,,COUNTA(Sheet1!$H:$H))

Then:

=SUMPRODUCT(N(INDIRECT("'"&Sheet_Names&"'!"&C10)))

Biff

"Gdcprogrc" <(E-Mail Removed)> wrote in message
news:1F2F5E6C-387F-438C-AFD6-(E-Mail Removed)...
> Thanks, again, Biff. I was hoping not to have to use a defined name
> because
> I wanted the name list length to change or be variable, which requires
> more
> work. But I did like Harlan's suggestion for other applications.
>
> "Biff" wrote:
>
>> >What does one do if your worksheets are named, June, July, August etc.?

>>
>> In that case, use Harlan's suggestion.
>>
>> Biff
>>
>> "Gdcprogrc" <(E-Mail Removed)> wrote in message
>> news:2BAA6BBE-E70F-4A80-B7F0-(E-Mail Removed)...
>> > Thanks Biff. That seems to work.
>> > What does one do if your worksheets are named, June, July, August etc.?
>> >
>> > "Biff" wrote:
>> >
>> >> Hi!
>> >>
>> >> Try it like this:
>> >>
>> >> C10 = ="A"&ROW()
>> >>
>> >> =SUMPRODUCT(N(INDIRECT("Sheet"&ROW(INDIRECT("2:3"))&"!"&C10)))
>> >>
>> >> Biff
>> >>
>> >> "Gdcprogrc" <(E-Mail Removed)> wrote in message
>> >> news:E0898A3A-B2C8-42BA-A8D9-(E-Mail Removed)...
>> >> > For example
>> >> > =SUM(INDIRECT(C10))
>> >> > where C10 would contain
>> >> > ="Sheet2:"&"Sheet3!"&"A"&ROW()
>> >> > always returns #REF!.
>> >> > However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?R2RjcHJvZ3Jj?=
Guest
Posts: n/a
 
      14th Jul 2006
Thanks a lot, Biff. Huge help and I appreciate it!

"Biff" wrote:

> You can make the sheet name list a dynamic range list and use Harlan's
> formula.......
>
> List the sheet names in a range of cells, say, H1:Hn
>
> Create a dynamic named range for the sheet names.
> Goto Insert>Name>Define
> Name: Sheet_Names
> Refers to:
>
> =OFFSET(Sheet1!$H$1,,,COUNTA(Sheet1!$H:$H))
>
> Then:
>
> =SUMPRODUCT(N(INDIRECT("'"&Sheet_Names&"'!"&C10)))
>
> Biff
>
> "Gdcprogrc" <(E-Mail Removed)> wrote in message
> news:1F2F5E6C-387F-438C-AFD6-(E-Mail Removed)...
> > Thanks, again, Biff. I was hoping not to have to use a defined name
> > because
> > I wanted the name list length to change or be variable, which requires
> > more
> > work. But I did like Harlan's suggestion for other applications.
> >
> > "Biff" wrote:
> >
> >> >What does one do if your worksheets are named, June, July, August etc.?
> >>
> >> In that case, use Harlan's suggestion.
> >>
> >> Biff
> >>
> >> "Gdcprogrc" <(E-Mail Removed)> wrote in message
> >> news:2BAA6BBE-E70F-4A80-B7F0-(E-Mail Removed)...
> >> > Thanks Biff. That seems to work.
> >> > What does one do if your worksheets are named, June, July, August etc.?
> >> >
> >> > "Biff" wrote:
> >> >
> >> >> Hi!
> >> >>
> >> >> Try it like this:
> >> >>
> >> >> C10 = ="A"&ROW()
> >> >>
> >> >> =SUMPRODUCT(N(INDIRECT("Sheet"&ROW(INDIRECT("2:3"))&"!"&C10)))
> >> >>
> >> >> Biff
> >> >>
> >> >> "Gdcprogrc" <(E-Mail Removed)> wrote in message
> >> >> news:E0898A3A-B2C8-42BA-A8D9-(E-Mail Removed)...
> >> >> > For example
> >> >> > =SUM(INDIRECT(C10))
> >> >> > where C10 would contain
> >> >> > ="Sheet2:"&"Sheet3!"&"A"&ROW()
> >> >> > always returns #REF!.
> >> >> > However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
=?Utf-8?B?R2RjcHJvZ3Jj?=
Guest
Posts: n/a
 
      14th Jul 2006
Thanks a lot, Harlan, you were a big help!

"Harlan Grove" wrote:

> Gdcprogrc wrote...
> >For example
> >=SUM(INDIRECT(C10))
> >where C10 would contain
> >="Sheet2:"&"Sheet3!"&"A"&ROW()
> >always returns #REF!.

> ....
>
> No. INDIRECT can only return range references. 3D references are never
> range references.
>
> You could use a list of worksheet names, e.g., WSLST referring to
>
> ={"Sheet2","Sheet3"}
>
> then use the formula
>
> =SUMPRODUCT(N(INDIRECT("'"&WSLST&"'!A"&ROW()))
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indirect references with VLOOKUP TQuestar Microsoft Excel New Users 5 26th Jan 2010 05:32 PM
Indirect cell references ???? Stephen Rainey Microsoft Excel Misc 9 3rd May 2006 05:22 PM
Indirect assembly references =?ISO-8859-15?Q?Henning_M=F6ller?= Microsoft C# .NET 3 30th Nov 2005 11:14 AM
indirect worksheet references elias tauscher Microsoft Excel Worksheet Functions 1 6th Nov 2003 03:07 PM
indirect references jbugman Microsoft Excel Misc 1 30th Sep 2003 07:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:37 AM.