+ Reply to Thread
Results 1 to 3 of 3

Count single criteria in different sheets (Dinamic sheets)

  1. #1
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Count single criteria in different sheets (Dinamic sheets)

    Hello Excel "Gurus"
    I'm trying a formula but I really don't kown where is the mistake
    You will see in Attachment my expected result
    Because i'm Able to count in differnt sheets with 1 criteria, but now my probem is to count in dynamic sheets
    that means for example: to count only from March till August or count febraury till april
    I hope is clear
    Thank yu for your help



    This formula is not completed
    =INDIRECT(ADDRESS(MATCH(B2,I:I,0),9)&":"&ADDRESS(MATCH(B3,I:I,0),9))
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Count single criteria in different sheets (Dinamic sheets)

    I found this elsewhere and learned something. COUNTIF will not work across multiple sheets. However, there is a trick you can do with SUMPRODUCT and COUNTIF: =SUMPRODUCT(COUNTIF(INDIRECT(MonthRange&"!F2:F100"),D2))

    MonthRange is a named range defined as: =OFFSET(Summary!$I$1,Summary!$C$2,0,Summary!$C$3-Summary!$C$2+1,1)

    You will note that I have two helper cells In column C that find where the start month and end month are found in the list of months. So as shown in the example, this is the range I4:I6.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: Count single criteria in different sheets (Dinamic sheets)

    wooowww!! dflack
    Excellent Job!!!!!
    Better later than never
    I liked the way yu used the OFFSET inside the define name
    Thank so much!

+ 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. Programming code : Sheets.Add After:=Sheets(Sheets.Count)
    By Blok , Robert in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2015, 05:00 AM
  2. Replies: 1
    Last Post: 10-04-2013, 04:21 AM
  3. Replies: 2
    Last Post: 09-19-2013, 04:22 AM
  4. Replies: 0
    Last Post: 02-02-2012, 05:38 PM
  5. Count summary by criteria across 2 sheets
    By mahesh_w in forum Excel General
    Replies: 11
    Last Post: 06-07-2011, 04:20 PM
  6. Replies: 8
    Last Post: 03-30-2011, 11:09 AM
  7. Coping Data from multi sheets to a single sheet via criteria
    By airbus319uk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2010, 08:42 AM

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