+ Reply to Thread
Results 1 to 5 of 5

Count on multiple sheets with condition

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Count on multiple sheets with condition

    Good morning,
    i would need your help to modify a formula that counts on multiple sheets with one condition.
    In the Total sheet in column B I have a formula that counts how many times the value of column A is present in column B of sheets E3: E4

    Now, my need is that, up to row 7 of the various sheets, the furnace is fine but, from row 8 downwards it must count only if an X is found in column D

    I hope it is clear
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Count on multiple sheets with condition

    Please try at B3
    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&$E$3:$E$4&"'!B3:B22"),A3,INDIRECT("'"&$E$3:$E$4&"'!D3:D22"),"X"))
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Count on multiple sheets with condition

    Hi Bo
    Thanks for the reply
    perhaps I have not made myself clear
    For cells colored in yellow it is ok

    but the others above where you see the 2 must come out the 2
    Example counting how many times A is found in 2s
    sheets twice even if there is no X
    I hope it is clear
    Thank you

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Count on multiple sheets with condition

    Maybe try

    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&$E$3:$E$4&"'!B3:B7"),A3))+SUMPRODUCT(COUNTIFS(INDIRECT("'"&$E$3:$E$4&"'!B8:B22"),A3,INDIRECT("'"&$E$3:$E$4&"'!D8:D22"),"X"))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Count on multiple sheets with condition

    Hello!
    now it's perfect
    thanks as always

+ 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. sum ifs multiple condition on multiple sheets question
    By Mastiman in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-20-2016, 11:06 PM
  2. delete multiple sheets with a condition
    By annux08 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2015, 12:42 AM
  3. How to Get Unique count with Multiple Condition.
    By jhabijay_10 in forum Excel General
    Replies: 1
    Last Post: 01-02-2015, 08:55 AM
  4. Count value with multiple condition
    By dailyglobal in forum Excel General
    Replies: 4
    Last Post: 07-10-2011, 12:43 AM
  5. sum multiple sheets based on condition
    By Mile029 in forum Excel General
    Replies: 2
    Last Post: 05-25-2011, 04:59 PM
  6. Count multiple condition
    By whygh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2005, 06:11 PM
  7. how to count unique entries with multiple condition
    By Michael in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-29-2005, 08:05 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