How to combine multiple columns from a table

mmetev

New Member
Joined
Jun 2, 2021
Messages
4
Office Version
  1. 365
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 nameType of ServicePayment 1 datePayment 1 amountPayment 2 datePayment 2 amountPayment 3 datePayment 3 amountPayment 4 datePayment 4 amount

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

Type of ServiceMonth 1Month 2Month 3Month 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.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top