+ Reply to Thread
Results 1 to 13 of 13

Counting Values across multiple sheets

Hybrid View

  1. #1
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting Values across multiple sheets

    Here's another one:

    =SUMPRODUCT(COUNTIF(INDIRECT(TEXT(41548+{0,7,14,21,28,35,42,49,56,63,70,77},"mmmd")&"!C3"),"P"))

    We can shorten it a bit by using a defined name.

    Goto the Formulas tab>Define Name
    Name: Array
    Refers to: ={0,7,14,21,28,35,42,49,56,63,70,77}
    OK out

    Then the formula becomes:

    =SUMPRODUCT(COUNTIF(INDIRECT(TEXT(41548+Array,"mmmd")&"!C3"),"P"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Counting Values across multiple sheets

    Trust you to think of that, Biff !!

    Nice one.

    Pete

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting Values across multiple sheets

    Thanks, Pete!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting Values across multiple sheets

    We can shorten it a bit more...

    Name: Sheets
    Refers to: =TEXT(41548+Array,"mmmd")

    Then the formula becomes:

    =SUMPRODUCT(COUNTIF(INDIRECT(Sheets&"!C3"),"P"))

  5. #5
    Registered User
    Join Date
    03-12-2012
    Location
    Manchester, England
    MS-Off Ver
    MS 365
    Posts
    57

    Re: Counting Values across multiple sheets

    Hi Tony
    thanks for your suggestion but you'll have to forgive my inexperience please and just give some pointers as to what certain things refer to in your formula, namely:
    1. 41548
    2. {0,7,14,21,28,35,42,49,56,63,70,77}
    3. mmmd


    Thanks for your understanding
    Chris

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Counting Values across multiple sheets

    Hi Chris,

    Tony won't be on-line for a few hours so I hope he doesn't mind if I answer for him:

    1. The number 41548 is the serial number that represents the date of 1st October 2013 (put that number in a cell somewhere and format the cell as a date).

    2. Those numbers (increments of 7) are added onto that start date to get other dates which are a week apart.

    3. The string "mmmd" is a format string used in conjunction with the TEXT command - it converts those dates into the format OCT1, or OCT7, or OCT14 etc. to match the names of your sheets.

    The formula takes each sheet name in turn and uses it within the COUNTIF function.

    Hope this helps.

    Pete

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting Values across multiple sheets

    Good explanation.

    Thanks, Pete!

+ 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. Counting with multiple criterias across multiple sheets
    By k.m. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2013, 03:40 PM
  2. [SOLVED] Counting multiple items with multiple criteria from multiple sheets?
    By essee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2013, 01:56 AM
  3. Counting from multiple sheets
    By jasond88 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-31-2013, 05:33 PM
  4. Counting Cells With Multiple Criteria on Multiple Sheets
    By ericmeiers in forum Excel General
    Replies: 5
    Last Post: 08-04-2012, 10:23 PM
  5. Counting Formula from Values on other sheets
    By nacho in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2007, 01:07 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