+ Reply to Thread
Results 1 to 8 of 8

merge identical fields and generate totals.

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Central Queensland Aust.
    MS-Off Ver
    Excel 2000
    Posts
    4

    merge identical fields and generate totals.

    I don't know whether anyone can help or not but i have a stock usage report i am doing and i would like to know if i can combine or merge into one line identical part numbers and recalculate the totals.

    Cheers in advance Dave
    Last edited by apeman1977; 03-18-2009 at 11:41 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: merge identical fields and generate totals.

    A sample worksheet showing your current setup and your desired results would help.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-18-2009
    Location
    Central Queensland Aust.
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: merge identical fields and generate totals.

    On sheet 2 of the worksheet there are part numbers in column A. of these there are multiple entry's. i am hoping to create just one entry but have a recalculated total against that one.

    eg. row 14 -19 are the same part numbers with a total of 496. i would like to make this just a single row with a total of 496. and of course update the costs as well.

    cheers Dave
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: merge identical fields and generate totals.

    What about the costs? Which one to take?

    Maybe, instead you can add a formula in the next column that shows the total quantity for the part... e.g... stick this formula in E2: =SUMIF(A:A,A2,C:C)

    and copy it down the entire list... now you have the total quantity for the part in that particular row.

    Does that work for you?

  5. #5
    Registered User
    Join Date
    03-18-2009
    Location
    Central Queensland Aust.
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: merge identical fields and generate totals.

    Not quite what i was chasing.

    The boss is probably still going to ask for just a single line if possible.

    is there a way of making it a single line at all? if there is that would be desirable. The costs from the same part number would also need to be added up like the quantities as well.

    If there is no way of doing this i will just have to let him know and go from there, or pull the individual types of part number and add them up and then put them into a new sheet.

    Dave

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: merge identical fields and generate totals.

    You could do it with a few steps...

    First, put formula in E2: =SUMIF($A:$A,$A2,C:C) and copy to F2, then copy down the list...

    Then copy columns E and F, select F1 and go to Edit|Paste Special and select Values... Click Ok.

    Then delete old columns C and D.

    Then click on A2 and go to Data|Filter|Advanced Filter.

    Select Filter List in Place

    List Range: select the entire range to filter.

    Select Unique Records Only.

    Click Ok...

    should have new unique list...

    See attached for what it should look like.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-18-2009
    Location
    Central Queensland Aust.
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: merge identical fields and generate totals.

    NBVC, you are an absolute legend and if i could hand you a beer right now i would do it.

    That is just want i wanted (hopefully it pleases the boss too).

    Thank you again, you information has been invaluable.

    Regards Dave

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: merge identical fields and generate totals.

    Great! You are welcome.. I could probably have used that beer about now.. But I will just pretend I got it from you anyways.

    Can you please mark the thread as solved:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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