+ Reply to Thread
Results 1 to 2 of 2

Sumproduct Sheet Reference

  1. #1
    Registered User
    Join Date
    08-27-2010
    Location
    Boston, Ma
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sumproduct Sheet Reference

    Hello-

    I am having an issue with a sumproduct formula updating. The formula is: =SUMPRODUCT((('Summary_WE_08212010 (3)'!$A$18:$A$620=$A5)*('Summary_WE_08212010 (3)'!$C$18:$C$620=$D5)),'Summary_WE_08212010 (3)'!E$18:E$620). I don't want to use the sheet name, as the lookup. Instead I want to reference the sheet number (eg. Sheet2) because this sheet is going to be deleted, updated, and name changed. If you need any other info please let me know. Thanks

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Sumproduct Sheet Reference

    You should be able to use the INDIRECT function.

    Here is a possible approach:

    Use helper cells to build the string for the sheet name

    Cell 1: sheet number (e.g 1, 2, etc.)
    Cell 2: sheet name (i.e. Summary_WE_08212010[space]
    Cell 3: sheet reference using above inputs joined together

    Using cells A1:C1 as the helper cells per the above
    A1: 1
    B2: MySheet
    C1: ="'"&B1&"("&A1&")'!"

    Result: 'Mysheet(1)'!

    formula: SUMPRODUCT(--((INDIRECT(C1&"$A$18:$A$620")=$A5)
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ 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