+ Reply to Thread
Results 1 to 7 of 7

Summing up columns by Name

  1. #1
    Registered User
    Join Date
    06-09-2016
    Location
    MIA
    MS-Off Ver
    2013
    Posts
    7

    Post Summing up columns by Name

    The challenge:

    My book contains a lot of duplicate Serial Numbers and VLookups and calculations. Serial Number 123 can be in that sheet 3 times as they ordered toner in March, August and September. I need a set up that reads the aging values, i.e. In March the usage was 3000, in August the usage was 3600 and in September it was 7000. I cannot wrap my mind around it how to calculate this with VLookups absolutely necessary. I can't upload the sheet but the outcome after filtering the serial number would look like this:

    123 March 3000 (calculations)
    123 August 3600 (calculations)
    123 September 7000 (calculations)

    I have all the data just not the correct formula. Please let me know what other pieces of info you need to figure that out for the less fortune.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Summing up columns by Name

    We do need a workbook. Create a dummy version of the real one using dummy data that reflects the real scenario as closely as possible.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-09-2016
    Location
    MIA
    MS-Off Ver
    2013
    Posts
    7

    Re: Summing up columns by Name

    I am attaching the dummie file. What it does is, it calculates all monthly BW data and gives me an average Months to re-order value. I filter by serial number and get the average.
    What I want is to to see the aging data. Based on March 16 BW how many months to re-order? Then April 16, then May 16. The same for Color. Does this help?
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,552

    Re: Summing up columns by Name

    I think that this formula yields the expected result for Desired Outcome B2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I don't understand the rest. My suggestion would be to upload a very small portion of the Desired Source spreadsheet, say 5 rows , then manually input the values that you expect to see in the Desired Outcome spreadsheet based on those five rows and the serial number entered. Once we have formulas for the small portion we should be able to adapt those formulas for the whole spreadsheet.
    Let us know if you have nay questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    06-09-2016
    Location
    MIA
    MS-Off Ver
    2013
    Posts
    7

    Re: Summing up columns by Name

    Hey,

    Thank you for taking the time to figure out my problem. I am attaching a new dummie. I have a feeling a Pivot with calculations would better serve my needs but I can't get the results I have. Please let me know if you have any further questions, the file is already 800kb and I can't upload more then 1000.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,552

    Re: Summing up columns by Name

    Here are the formulas that fill in the table:
    For Model: =VLOOKUP(A2,'Desired Source'!B$2:H$2514,7)
    For Yield: =VLOOKUP($B2,'Model Lookup'!$A$2:$C$33,COLUMN(B:B)) * Pasted into D2 then dragged into C2 and down.
    For Usage March to May: =SUMPRODUCT(('Desired Source'!$B$2:$B$2514=$A2)*(('Desired Source'!I$2:I$2514)+('Desired Source'!K$2:K$2514)+('Desired Source'!M$2:M$2514))) *Pasted into F2 then dragged into G2
    For Usage March to August: =F2+SUMPRODUCT(('Desired Source'!$B$2:$B$2514=$A3)*(('Desired Source'!O$2:O$2514)+('Desired Source'!Q$2:Q$2514)+('Desired Source'!S$2:S$2514))) *Pasted into F3 then dragged into G3
    For Usage March to November: =F3+SUMPRODUCT(('Desired Source'!$B$2:$B$2514=$A4)*(('Desired Source'!U$2:U$2514)+('Desired Source'!W$2:W$2514)+('Desired Source'!Y$2:Y$2514))) *Pasted into F4 then dragged into G4
    Note: you uploaded as an .xls file although your profile says that you use the 2013 version of Excel. I am returning it to you as an .xlsx file, which is the normal file extension for your version.
    Note: see further explanation on the Desired Outcome sheet cells B8:B9
    Let us know if you have any questions.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-09-2016
    Location
    MIA
    MS-Off Ver
    2013
    Posts
    7

    Re: Summing up columns by Name

    Hi,

    I haven't been able to see if that's the solution (overwhelmed with work) just wanted to give you a huge THANK YOU for helping me. Will test soon and let you know.

+ 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. Replies: 2
    Last Post: 06-03-2015, 12:53 PM
  2. Summing columns with #N/a
    By Jaspal in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-20-2013, 10:54 AM
  3. Summing columns
    By nonexcelman in forum Excel General
    Replies: 6
    Last Post: 08-24-2010, 03:26 PM
  4. Summing Columns-revolves around summing particular items
    By savv32 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2005, 09:05 PM
  5. Summing Columns
    By Highlander in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. [SOLVED] Summing Columns-How do I add non-numbered columns in excel?
    By Highlander in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2005, 12:05 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