+ Reply to Thread
Results 1 to 7 of 7

Loop and sum in another column if a column value matched

  1. #1
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Loop and sum in another column if a column value matched

    Hi all,
    Attached is a sample data that I would like to loop through column "E", if the value is matched,
    then sum the values at "Total..."(G,I,K,M,O,Q,S,U,W), into next column which is "SubTtl1....".
    Attached is sample range of data, the numbers of rows will be variable from time to time.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Loop and sum in another column if a column value matched

    Hi,

    Try this formula in H2 and pull it down.

    =SUMIFS(G$1:G2,E$1:E2,E2)

    Is that what you need? If not then give us a correct answer for a few rows in the H and J columns.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Loop and sum in another column if a column value matched

    No, it does not help, as it will became duplicate numbers.

  4. #4
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Loop and sum in another column if a column value matched

    Hi all,
    There's no VBA code able to help on this?

  5. #5
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Loop and sum in another column if a column value matched

    Hi, there's no VBA able to run on sum up the value in this case?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Loop and sum in another column if a column value matched

    Perhaps you missed this in Marvin's post?
    Is that what you need? If not then give us a correct answer for a few rows in the H and J columns.
    Please provide a few sample answers and explain how you got them
    Also, why does this need to be VAB if a formula will give you the answer?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Loop and sum in another column if a column value matched

    Hi,
    With the sumif, it cumulated the numbers, and for one part number, it will became duplicate total sum.
    But I will need only the total sum of the qty(e.g, 8002, total qty is 84249),
    the total qty is needed for my next calculation, to analyze what is the changes, if percentage of share change.


    PN Item Total Oct SuBTtl1
    8002 A1-C 80000 80000
    8002 A1-C 4224 84224
    8002 A1-C 25 84249

+ 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. When first pair are matched, copy entry beside the column to another column
    By seanryano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2015, 11:14 AM
  2. File Open and Search column from A1:CE1. If matched than copy entire row for that column.
    By shivanisachdeva167 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2014, 01:51 PM
  3. Replies: 6
    Last Post: 01-29-2014, 12:22 AM
  4. Search results of a column display a set value in another column if matched
    By rkrause54 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-12-2013, 01:59 PM
  5. Replies: 12
    Last Post: 12-28-2012, 07:49 PM
  6. Get matched values of a column based on the value of other column
    By Bluecarbon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-23-2009, 09:22 AM
  7. Replies: 3
    Last Post: 08-01-2006, 08:15 PM

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