+ Reply to Thread
Results 1 to 19 of 19

Consolidating data from multiple worksheets

  1. #1
    Registered User
    Join Date
    04-11-2008
    Posts
    10

    Question Consolidating data from multiple worksheets

    I'm trying to consolidate inventory for my department. I have Part#s in (column E) of all the worksheets and the amount of the product in (column C). I need a formula that finds the specific part# (in column E) and adds up the total amounts (in column C) in another worksheet has the part#s and amounts in same column.

    I'm starting to understand the basics if excel but this is beyond me.

    I would appreciate any help thanks
    Attached Files Attached Files
    Last edited by Gap; 04-11-2008 at 04:49 PM.

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

  3. #3
    Registered User
    Join Date
    04-11-2008
    Posts
    10

    add workbook

    heres a cut down version^

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    sorrt mate its still not too clear
    could you fill in the consolidation (and highlite cells)with what you'd expect too see?

  5. #5
    Registered User
    Join Date
    04-11-2008
    Posts
    10

    more info

    need to search all worksheets specific for part #s(column e) getting the total amount (from column c) of that part form all sheets and adding up into the consolidated worksheet ( into column c)


    Starting in worksheet consolidate C3 find worksheet consolidate E3 in worksheet unit 1 (column e) and worksheet unit2 (column e) and then taking the amount (in column c) associated with the part # and add them up in worksheet consolidate C3


    Hope this clarifies not confuses

    thanks
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    this simply does just that
    there is more you could do like return part name as well when code put in
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-11-2008
    Posts
    10

    Thanks but still need a little help

    Thanks for the formula

    I tried puting formula in Had different worksheet names


    =IF(ISBLANK(E64),0,"(INDEX('Battalion 1 (1287)'!$C:$E,MATCH(E64,'Battalion 1 (1287)'!$E:$E,0),1))+(INDEX(Battalion 2 (889)'!$C:$E,MATCH(E64,Battalion 2 (889)'!$E:$E,0),1)))")

    yours didn t have quotation in it try to take them out but they keep coming back
    Last edited by Gap; 04-15-2008 at 05:28 PM.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    Please Login or Register  to view this content.
    you need quotation marks if there is a space in sheet name
    so .... sheet1! is ok but.... sheet 1! ....needs to be 'sheet 1'!

  9. #9
    Registered User
    Join Date
    04-11-2008
    Posts
    10
    IF(ISBLANK(E64),0,"(INDEX('Battalion 1 (1287)'!$C:$E,MATCH(E64,'Battalion 1 (1287)'!$E:$E,0),1))+(INDEX(Battalion 2 (889)'!$C:$E,MATCH(E64,Battalion 2 (889)'!$E:$E,0),1)))")

    still have the problem of the " before the first INDEX and at the end of the function befor the last )

  10. #10
    Registered User
    Join Date
    04-11-2008
    Posts
    10

    28+ worksheet

    Another question regarding the same code is the a way of say incorporating all the worksheet excluding the one the code is on. I have over 28 worksheet was wondering do i have to input all the worksheet separately into the code.

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    oops typos it should be
    Please Login or Register  to view this content.
    and yes you have to do it for each sheet
    Last edited by martindwilson; 04-18-2008 at 02:39 AM.

  12. #12
    Registered User
    Join Date
    04-11-2008
    Posts
    10
    =IF(ISBLANK(E64),0,",(INDEX('BATTALION 1'!$C:$E,MATCH(E3,'BATTALION 1'!$E:$E,0),1))+(INDEX('BATTALION 2'!$C:$E,MATCH(E3,'BATTALION 2'!$E:$E,0),1)))")


    i cut and pasted what you put but it puts in the " mark infront of the first ,(INDEX and at the very end )))")

    I m confused does it matter what version Excel I'm using

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    confused ! so am i
    ok here's the sheet with 'battalion 1' and 'battalion 2' instead of unit1 /2
    same formula that i posted. i've copied and pasted it back into sheet and it works ok.
    are you using engish version of excel?
    Attached Files Attached Files
    Last edited by martindwilson; 04-18-2008 at 04:55 PM.

  14. #14
    Registered User
    Join Date
    04-11-2008
    Posts
    10
    OK here's a cut down version of my actual workbook hope this helps

    The last page (combination list or consolidation list )starts a line 64

    Thanks for all the help
    Attached Files Attached Files

  15. #15
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    ok thats sorted
    but i'm not really sure if this is the best way to go about it
    it would be easier if all tabs had same same listings
    with zero in if they havent got it
    then your consolidation sheet could simply sum the same cell from each tab
    you could still group by comms/emergency kit/consumables or such
    and in the long run it would be easier to manage
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    04-11-2008
    Posts
    10
    I keep getting N/A# when it can't find the part# in the worksheet how do I get around this? Other than that it working


    P.S

    You ve been a great help
    Last edited by Gap; 04-22-2008 at 03:05 PM.

  17. #17
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    which bit gives n/a ?

  18. #18
    Registered User
    Join Date
    04-11-2008
    Posts
    10
    The in the consolidated sheet where the numbers are suppose to add up if one of the sheets doesn t have the part# the value givin in Column c in N/A#

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

    Exclamation

    to get rid of that ,formula will have to read (in sheet combination c64)
    wait for it.



    Please Login or Register  to view this content.
    i think we could do with some help here!!!! can anyone out there sort this?

+ 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