+ Reply to Thread
Results 1 to 7 of 7

Summarize data from multiple worksheets onto one

  1. #1
    Registered User
    Join Date
    04-21-2009
    Location
    East Peoria, IL, USA
    MS-Off Ver
    Excel 2013
    Posts
    39

    Summarize data from multiple worksheets onto one

    I am trying to do a spreadsheet that has several tabs with data and one tab that will summarize data from the others. I know how to get data from another tab, but what I don't know is how to get all the data from one tab, then skip a couple lines and start from the beginning of the next tab. I have tried a couple of different if statements, but that doesn't seem to be the correct answer. In the attached file the pink columns will be hidden, they are just used to complete another cell. Thanks in advance for any help.
    Attached Files Attached Files
    Last edited by BrettW; 03-19-2010 at 04:29 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,765

    Re: My if statements are getting out of control

    The following formula will work, but only for your very specific situation. Here are the requirements.

    1. There are two other worksheets that you are summarizing
    2. The data in your summary sheet is in the same columns as in the other two worksheets
    3. Every row of data will have a nonblank entry in column A
    4. There is one header row on all three worksheets

    If any of these is violated, it won't work.

    If there is no data for the corresponding row, the string "No data" will appear. In this case it also appears in Summary column D because none of the rows have "Description" filled in.

    Paste this formula into A2 in Summary then copy across all columns to D and down as many as you need.

    =IF(ROW()<=COUNTA(V_Mori!A:A),INDEX(V_Mori!A:A,ROW()),IF(ROW()<=COUNTA(V_Mori!A:A)+COUNTA(CNC_Lathe!A:A)-1,INDEX(CNC_Lathe!A:A,ROW()-COUNTA(V_Mori!A:A)+1),"No Data"))
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: My if statements are getting out of control

    Brent, please reread the forum rules and retitle your thread.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,765

    Re: My if statements are getting out of control

    On second look, you said you had "several" tabs of data. This formula gets very unwieldy if you try to extend it to include more worksheets, and eventually you will bump into the limit of nested IFs. What does your real data look like?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,765

    Re: My if statements are getting out of control

    [Overtaken by events]

  6. #6
    Registered User
    Join Date
    04-21-2009
    Location
    East Peoria, IL, USA
    MS-Off Ver
    Excel 2013
    Posts
    39

    Re: Summarize data from multiple worksheets onto one

    I will probably have ten different worksheets, the two listed are the only two I have done so far. The data in those sheets is not real, but the sheet names are. I thought the limit was seven nested ifs, and know I am going to have more than seven sheets. The sheet names will probably be:

    CNC_Lathe
    V_Mori
    H_Mori
    B_Mori
    Engine_Lathes
    SW_Mill
    Inspection
    Saws
    Grinders_and_Hones
    Presses

    There might wind up being a couple more, but I can probably adjust the code to fit my needs, I just need a nudge in the right direction.

  7. #7
    Forum Contributor
    Join Date
    02-24-2010
    Location
    BC, Canada
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: Summarize data from multiple worksheets onto one

    Quote Originally Posted by BrettW View Post
    There might wind up being a couple more, but I can probably adjust the code to fit my needs, I just need a nudge in the right direction.
    If you just need a nudge in the right direction then check out this thread:
    http://www.excelforum.com/excel-gene...le-sheets.html

    Your request is similar to what I wanted, with a few minor differences. Post #3 and #15 have suggested code in them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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