+ Reply to Thread
Results 1 to 12 of 12

Counting Data From Multiple Sheets

  1. #1
    Registered User
    Join Date
    09-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Thumbs up Counting Data From Multiple Sheets

    Hello,

    I was wondering how to go about this...

    I have 5 columns of numbers located in columns T-X in each sheet that have been sorted and counted.

    I want to then, on the final sheet, count how many times each number occurred in ALL of the sheets for that specific column, and how many times each number occurred overall between the 5 columns.

    On the final sheet, column 1 would be referring to column T, column 2 would be referring to column U, etc..

    Also, if that number doesn't exist in a column or even at all, I would like to have a 0 placed in the cell on the final sheet. Could this be accomplished by setting a range of numbers before it begins counting?

    Any form of guidance would be greatly appreciated.

    I am using Microsoft Excel 2007, and I have attached an example document to help provide a visual of what I am trying to achieve.

    There are currently only three sheets in my example document. The first two contain the numbers and the third sheet would be the sheet to total them in.

    Thanks in advance,

    w3dgie
    Attached Files Attached Files
    Last edited by w3dgie; 02-17-2011 at 12:42 PM. Reason: Attaching Document

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting Data From Multiple Sheets

    no workbook attached!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Counting Data From Multiple Sheets

    Sorry about that, I don't know why I didn't go through the first time. I have edited my post and it is attached now.

  4. #4
    Registered User
    Join Date
    09-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Counting Data From Multiple Sheets

    Are we allowed to bump posts? If so, here is the first bump. If not, I apologize for bumping this thread.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting Data From Multiple Sheets

    You could use a "3D COUNTIF" based on H:L on each sheet.

    Using your sample file, first create a list of the sheets to be included in the formula, eg:

    Please Login or Register  to view this content.
    Then:

    Please Login or Register  to view this content.
    Column G is a simple Sum of B:F obviously

  6. #6
    Registered User
    Join Date
    09-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Counting Data From Multiple Sheets

    DonkeyOte,

    Thank you for taking the time to read my post and brainstorm a possible idea to help me accomplish this task. I am just a little confused though.

    I'm sorry could you be a little more specific upon where this should be entered?

    I have never used 3D COUNTIF.

    Questions:
    Where am I creating this list of sheets to be included & how do I go about doing so?
    Where would the second formula you included be pasted?
    Would it be too much to ask for you to edit the example document, so I can have a visual to reference to?

    -w3dgie

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting Data From Multiple Sheets

    The cell references to be used are included in my prior post, specifically:

    Sheets to be listed in I1, I2

    Formula to be placed in B2 and then applied to remainder of results matrix (B2:F33)

  8. #8
    Registered User
    Join Date
    09-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Counting Data From Multiple Sheets

    Okay thank you I have it figured out.

    One more question...

    Sometimes I will have workbooks with less than 5 columns and sometimes more than 5 columns, will this formula work the same, whether it's more or less than 5 columns?

    If not, what part of the formula do I need to change in order to reflect each workbook?

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting Data From Multiple Sheets

    Quote Originally Posted by w3dgie
    Sometimes I will have workbooks with less than 5 columns and sometimes more than 5 columns, will this formula work the same, whether it's more or less than 5 columns?
    If in doubt... test

    Pending location of data yes it should be fine - it uses relative referencing within the INDIRECT such that when dragged to the right it references the next column and so on and so forth.
    If the first column of source data moves in relation to the first column of results then you will need to adjust the # in the C[#] offset
    we use 6 in the example as first column of results is B and first column of source data is 8 so 8-2 = 6


    For a brief overview of R1C1 notation (as used in the INDIRECT) see: http://www.excelforum.com/2171545-post2.html
    Last edited by DonkeyOte; 02-22-2011 at 01:13 PM.

  10. #10
    Registered User
    Join Date
    09-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Counting Data From Multiple Sheets

    Okay thank you for your quick reply.

    Could you explain that in terms that I would better understand? I'm not really following you right now. I understand that the data is starting in column B, but I do not understand what you mean by the 8-2=6 thing.

    I read your article, I am not following it. Very confusing.

    So let's say I had 3 columns. Would it then be, "!R1C[4]:R100C[4]" ??
    Last edited by w3dgie; 02-22-2011 at 01:48 PM.

  11. #11
    Registered User
    Join Date
    09-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Counting Data From Multiple Sheets

    !R1C[4]:R100C[4] seems to be producing in accurate results.

    I found the problem. It was only adding 100 rows. It is accurate now. Thanks a bunch for all of your help. Keep up the good work!
    Last edited by w3dgie; 02-22-2011 at 01:58 PM.

  12. #12
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting Data From Multiple Sheets

    I can't really explain R1C1 any more simply than the referenced link I'm afraid.

    If you're finding it hard to follow I'd suggesting Googling Excel R1C1 for more material - some of which is bound to make more sense to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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