+ Reply to Thread
Results 1 to 11 of 11

Can you use INDIRECT in 3-D references?

  1. #1
    Gdcprogrc
    Guest

    Can you use INDIRECT in 3-D references?

    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.

  2. #2
    Harlan Grove
    Guest

    Re: Can you use INDIRECT in 3-D references?

    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()))


  3. #3
    Biff
    Guest

    Re: Can you use INDIRECT in 3-D references?

    Hi!

    Try it like this:

    C10 = ="A"&ROW()

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

    Biff

    "Gdcprogrc" <[email protected]> wrote in message
    news:[email protected]...
    > 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.




  4. #4
    Gdcprogrc
    Guest

    Re: Can you use INDIRECT in 3-D references?

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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.

    >
    >
    >


  5. #5
    Biff
    Guest

    Re: Can you use INDIRECT in 3-D references?

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

    In that case, use Harlan's suggestion.

    Biff

    "Gdcprogrc" <[email protected]> wrote in message
    news:[email protected]...
    > 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" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > 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.

    >>
    >>
    >>




  6. #6
    Gdcprogrc
    Guest

    Re: Can you use INDIRECT in 3-D references?

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > 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.
    > >>
    > >>
    > >>

    >
    >
    >


  7. #7
    Harlan Grove
    Guest

    Re: Can you use INDIRECT in 3-D references?

    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" <[email protected]> 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")).


  8. #8
    Biff
    Guest

    Re: Can you use INDIRECT in 3-D references?

    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" <[email protected]> wrote in message
    news:[email protected]...
    > 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" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > 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" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > 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.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  9. #9
    Gdcprogrc
    Guest

    Re: Can you use INDIRECT in 3-D references?

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > 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" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > 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.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  10. #10
    Gdcprogrc
    Guest

    Re: Can you use INDIRECT in 3-D references?

    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()))
    >
    >


  11. #11
    Biff
    Guest

    Re: Can you use INDIRECT in 3-D references?

    You're welcome!

    Biff

    "Gdcprogrc" <[email protected]> wrote in message
    news:[email protected]...
    > 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" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > 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" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > 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" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1