+ Reply to Thread
Results 1 to 2 of 2

Sum COL based on values of multiple columns but in same row

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    Davis, CA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Sum COL based on values of multiple columns but in same row

    Hello, I'm trying to use VBA to sum values in COL F and delete duplicate rows when the data in COLs A through D all match in other rows. The sum would replace the topmost value in COL F, and also replace the value in COL E to represent that multiple divisions are represented in the total. (the values in COL E are still important where there are no duplicates of other data).

    I thought of trying a combination of concatenation of the data in COLs A:D as a SUMIF criteria, but can't figure out how. Any other suggestions would be most appreciated.


    A B C D E F
    1 Fall 2018 Company A 393090406 ALB 1 11
    3 Fall 2018 Company A 393265149 SAN 1 80
    4 Fall 2018 Company A 393265149 SAN 2 80
    5 Fall 2018 Company A 393265149 SAN 7 73

    Becomes:

    A B C D E F
    1 Fall 2018 Company A 393090406 ALB 1 11
    2 Fall 2018 Company A 393090406 SAN 1 80
    3 Fall 2018 Company A 393265149 SAN MULTI 233

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sum COL based on values of multiple columns but in same row

    Please upload the actual workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context. Don't upload dummy data that isn't truly reprsentative or which doesn't shpw all the permutations you require

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. VBA Sum based on matching values in multiple columns
    By TheOneWeDreamOf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-23-2019, 08:00 PM
  2. Retrieve values from multiple columns based on values in multiple columns.
    By webwyzard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2018, 04:29 PM
  3. Averaging multiple columns based on row values
    By smd71092 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-13-2016, 08:06 PM
  4. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  5. [SOLVED] Excel 2007 : Sum values in multiple columns based on date
    By ashbot in forum Excel General
    Replies: 5
    Last Post: 06-05-2012, 10:01 PM
  6. Filter based on values of multiple columns
    By learning in forum Excel General
    Replies: 8
    Last Post: 09-29-2009, 03:17 AM
  7. [SOLVED] How to lookup and sum multiple values based on multple columns
    By Ray Gans in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2005, 07:05 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