+ Reply to Thread
Results 1 to 8 of 8

counting the yes ansewrs in multiple excel sheets

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    counting the yes ansewrs in multiple excel sheets

    Hi folks,

    I am trying to count the amount of times a yes answer is provided over a number of worksheets, I am using this formula
    =SUM(COUNTIF(INDIRECT("Sheet"&{1,2,3,4,5,6,7,8}&"!D4"),"Yes"))
    so far so good but once I change the name of any of the worksheets it automatically gives me a #REF! in the cell. Is there a way of renaming all the sheets and still have this work.
    Any help would be seriously appreciated.

    Thanks

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

    Re: counting the yes ansewrs in multiple excel sheets

    That type of formula won't work if the sheet names will change.

    You can use the technique described here to create a list of the sheet names.

    Then, assuming the sheet names are in the range A2:A10, you could use a formula like this:


    =SUMPRODUCT(COUNTIF(INDIRECT("'"&A2:A10&"'!D4"),"Yes"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: counting the yes ansewrs in multiple excel sheets

    Hi Mate,

    thanks for the reply. Have tried that an still having problems as what I am specifically trying to do is count if there is a yes in the same cell in different worksheets. So it could be cell A5 in a worksheet called "white", A5 in "black" A5 in "red" and A5 in "blue". I have drop downs in the worksheets that allow you choose yes or no and I want a counter in the first worksheet "Dash" to say how many yes options have been chosen. I want to do this with a large amount of cells and sheets throughout the workbook. Hope this helps. Thanks again

  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 the yes ansewrs in multiple excel sheets

    What kind of problems are you having?

    It might be easier if you just put a formula on each sheet in the same cell like this:

    X1: =--(A5="Yes")

    Then, to get the count of "Yes" across all the sheets:

    =SUM(White:Blue!X1)

  5. #5
    Registered User
    Join Date
    10-11-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: counting the yes ansewrs in multiple excel sheets

    Hi Tony,

    sorry, I finally got it working and was going to message you saying so. Thanks very much for your help

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

    Re: counting the yes ansewrs in multiple excel sheets

    Good deal. Thanks for the feedback!

  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 the yes ansewrs in multiple excel sheets

    If your question has been solved please take a moment and mark the thread as being solved.

    To mark your thread as Solved, in the menu bar above the top post in the thread select Thread Tools>Mark thread as Solved.

  8. #8
    Registered User
    Join Date
    10-11-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: counting the yes ansewrs in multiple excel sheets

    Thanks again Tony

+ 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 and percentages in multiple sheets
    By kmfdm515 in forum Excel General
    Replies: 14
    Last Post: 01-31-2008, 08:22 PM

Tags for this Thread

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