+ Reply to Thread
Results 1 to 9 of 9

Indirect reference to a sheet in this formula

Hybrid View

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question Indirect reference to a sheet in this formula

    i guys,

    I need some help please.

    i have a drop down list of all the worksheets in the workbook in cell A1.

    I want to reference this in my formula below:

    =SUM((#REF!$H$1:$H$10000=""&$B$4)*(#REF!$L$1:$L$10000=""&G4))
    the formula is a countif with 2 criteria really.

    I need to do this so that i can slect wich data set to count from.

    please help?

    i thought it would be like this or using the =INDIRECT() function but i cant figure it out!!

    =SUM((A1&"!"&$H$1:$H$10000=""&$B$4)*(A1$"!"&$L$1:$L$10000=""&G4))
    thanks for reading this tread everyone.
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =SUMPRODUCT((INDIRECT("'"&A1&"'!$H$1:$H$10000")=$B$4)*((INDIRECT("'"&A1&"'!$L$1:$L$10000")=G4)))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question No Joy

    Not working Buddy i get a Ref# error?

    any other ideas?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The sheetname in cell A1 must be exactly the same as the actual sheetname in your workbook (ie. spaces too!).

    Did you double-check that?

  5. #5
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question They are

    They are buddy can i send you the file? whats ur e-mail addy?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Can you upload it here as a zipped XL2003 file?

+ 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