+ Reply to Thread
Results 1 to 3 of 3

Adding under three criteria across many worksheets.

  1. #1
    Registered User
    Join Date
    02-03-2015
    Location
    Mexico
    MS-Off Ver
    2007
    Posts
    13

    Adding under three criteria across many worksheets.

    I have the following formula constructed from different forums I checked out and it returns a #VALUE! error.

    =SUMIFS(INDIRECT("'"&$X$21:$X$33&"'!$F:$F"),INDIRECT("'"&$X$21:$X$33&"'!$A:$A"),">"&R1,INDIRECT("'"&$X$21:$X$33&"'!$A:$A"),"<="&S1,INDIRECT("'"&$X$21:$X$33&"'!$B:$B"),"="&$A1)

    Where:

    X21:X33, contains a list of the names of the sheets I want to include in the result.
    F:F, contains sales amounts
    A:A, contains sales dates
    R1, contains a the previous Saturday date, for example January 3 2015
    S1, contains the next Saturday date, in this case January 10 2015
    A1, is the name of a salesperson

    So I have a sheet per product (Soap, Shampoo, etc.), and I want to add up the sales each sales rep has made by week regardless of "product" (hence the need to add across sheets using three criteria: sales rep, later than X date and before Y date).

    What am I doing wrong? I need this for an upcoming presentation, help!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Adding under three criteria across many worksheets.

    It appears correct.

    Anyway, try to check column F in all sheets to make sure they contain number value (not text)
    Quang PT

  3. #3
    Registered User
    Join Date
    02-03-2015
    Location
    Mexico
    MS-Off Ver
    2007
    Posts
    13

    Re: Adding under three criteria across many worksheets.

    There seems to be something wrong with the reference to the worksheets, because I substituted all the "INDIRECT" for the name of one particular worksheet and had a result thrown back. Don't understand what is going on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  2. Adding Worksheets
    By Latlong in forum Excel General
    Replies: 4
    Last Post: 01-01-2010, 11:14 PM
  3. Adding different worksheets
    By berniecole in forum Excel General
    Replies: 2
    Last Post: 04-04-2009, 05:20 PM
  4. [SOLVED] Adding values from several worksheets - would appreciate the help
    By Greegan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. [SOLVED] adding worksheets together
    By Gary in forum Excel General
    Replies: 1
    Last Post: 06-27-2005, 04:05 PM

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