+ Reply to Thread
Results 1 to 4 of 4

Macro to scan multiple columns and find total sum of each unique item on a list of unique

  1. #1
    Registered User
    Join Date
    09-20-2022
    Location
    Lagos, Nigeria
    MS-Off Ver
    MS Office 2013
    Posts
    11

    Question Macro to scan multiple columns and find total sum of each unique item on a list of unique

    Good day. Been struggling with this and would appreciate some help. I'd like to write a macro that goes through multiple columns in a sheet and sums the total values of each item beside it's cell in a unique list. Similar to how to find for eg. sum of total sales for multiple months for a particular product. I have attached a sample sheet to explain. The update sheets are to show how the input data worksheet would expand over time, so the code would need to work for a dynamic range. So far working on it i've found i might need a SUMIF INDEX-MATCH array function, but i don't know how to write it. I use Excel 2013.



    Would be grateful for any help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Macro to scan multiple columns and find total sum of each unique item on a list of uni

    Would it not be better to have all data in a table structured way.

    After that you can use Pivot Table to analyse the data.


    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,377

    Re: Macro to scan multiple columns and find total sum of each unique item on a list of uni

    How about (I agree with oeldere though).

    Please Login or Register  to view this content.

  4. #4
    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,495

    Re: Macro to scan multiple columns and find total sum of each unique item on a list of uni

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.mrexcel.com/board/thread...alues.1217430/)
    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.

+ 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. Correct Macro to find Unique Item in List & Copy Record to New Worksheet
    By Wanttobeexcelpro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2022, 09:30 PM
  2. [SOLVED] Transpose data in six columns into unique and multiple rows based on unique club name
    By JimmyB11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2021, 09:12 AM
  3. Create unique list from multiple columns using UNIQUE
    By PingTing in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-30-2020, 10:40 PM
  4. VBA: Multiple text and number columns. Find list and number of unique words
    By first_jaguar in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-14-2017, 09:58 PM
  5. [SOLVED] Combining list of Unique Values from Multiple Columns and with Total Value
    By masood78 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-11-2016, 07:27 PM
  6. Replies: 1
    Last Post: 04-30-2015, 10:01 AM
  7. 3 columns: None contain unique values, but I need a list of every unique set
    By mathematician in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-15-2012, 04:47 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