+ Reply to Thread
Results 1 to 3 of 3

How to combine multiple columns from a table

  1. #1
    Registered User
    Join Date
    04-16-2021
    Location
    Bulgaria
    MS-Off Ver
    365
    Posts
    2

    How to combine multiple columns from a table

    Hello everybody,


    My issue is the following: I have a table where I have multiple columns that have date and values but represent different things. Here is an example for my headers:



    Customer name Type of Service Payment 1 date Payment 1 amount Payment 2 date Payment 2 amount Payment 3 date Payment 3 amount Payment 4 date Payment 4 amount

    What I want to do is sumifs the table based on multiple criteria. For example:

    Type of Service Month 1 Month 2 Month 3 Month 4
    Service 1
    Service 2
    Service 3




    The thing is that I do not want to write 4 sumifs (in this case, but in fact I have more that 4 sets of date:value columns).


    I was thinking of creating a new table where I could put all the columns below each other (in one table with 4 columns - Customer name, Type of Service, Date and Payment) but the table should be dynamically created, meaning that it should be expanded dynamically with the new entries in the original table (i.e. if the original table has 200 entries, this would make the new table with 4x200=800 entries, if the original table has one more record then the new table should have 4x201=804 records).


    I also checked the PowerQuery option but could not get my head around it.


    So any help on the matter will be highly appreciated.


    Thank you.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: How to combine multiple columns from a table

    an actual workbook with actual layout would be worth a thousand pictures

  3. #3
    Registered User
    Join Date
    04-16-2021
    Location
    Bulgaria
    MS-Off Ver
    365
    Posts
    2

    Re: How to combine multiple columns from a table

    How about now?
    Attached Files Attached Files

+ 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. Combine multiple columns within multiple rows based on value of a column up until change i
    By enyceexdanny in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2021, 05:21 PM
  2. Replies: 3
    Last Post: 03-28-2018, 05:08 PM
  3. Replies: 0
    Last Post: 01-04-2018, 01:46 PM
  4. [SOLVED] Combine multiple sets of columns into a singe set of columns
    By umchem in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-19-2017, 12:14 PM
  5. Replies: 6
    Last Post: 11-25-2015, 01:01 PM
  6. Macro to combine multiple columns keeping few columns specific
    By lramesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 12:44 PM
  7. Replies: 0
    Last Post: 07-31-2006, 12:13 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