Summing by Quarter (dates are in header row)

pdvsa

Board Regular
Joined
Apr 22, 2010
Messages
61
Office Version
  1. 365
Platform
  1. Windows
Hello Experts,

How can I sum this data by quarter? Dates are in row 1 as a header. I would like to have a pivot and date filter and sum by quarter but I seem to remember that having dates in a header row creates issues.

BeneficiaryIssuing EntityAll In Rate4/1/20205/1/20206/1/20207/1/20208/1/20209/1/202010/1/202011/1/202012/1/20201/1/20212/1/20213/1/20214/1/20215/1/2021
Co 1IE 1
0.015​
250​
250​
250​
250​
250​
250​
250​
250​
250​
250​
250​
250​
250​
250​
Co 2IE 2
0.0177​
2950​
2950​
5930​
5930​
2950​
2950​
3393​
3393​
3393​
8260​
8260​
8260​
8260​
8260​
Co 3IE 3
0.018​
0​
0​
0​
7367​
7367​
7367​
7367​
7367​
7367​
7367​
7367​
7367​
7367​
5084​
Co 4IE 4
0.018​
9513​
9513​
9513​
9513​
9513​
9513​
9513​
9513​
9513​
11099​
11099​
11099​
11099​
11099​
Co 5IE 5
0.018​
6342​
6342​
6342​
6342​
6342​
6342​
6342​
6342​
6342​
7928​
7928​
7928​
7928​
7928​
Co 6IE 6
0.018​
8309​
8309​
8309​
8309​
8309​
8309​
8309​
8309​
8309​
9693​
9693​
9693​
9693​
9693​
Co 7IE 7
0.018​
5539​
5539​
5539​
5539​
5539​
5539​
5539​
5539​
5539​
6924​
6924​
6924​
6924​
6924​
Co 8IE 8
0.018​
178​
178​
178​
178​
178​
178​
178​
178​
178​
208​
208​
208​
208​
208​
Co 9IE 9
0.018​
119​
119​
119​
119​
119​
119​
119​
119​
119​
149​
149​
149​
149​
149​
Co 10IE 10
0.025​
208​
208​
208​
208​
208​
208​
208​
208​
208​
208​
208​
208​
208​
208​
Co 11IE 11
0.018​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
1006​
Co 12IE 12
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
Co 13IE 13
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
Co 14IE 14
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
Co 15IE 15
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​



Grateful for your assistance.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Cannot manipulate your data. Suggest you re upload using XL2BB function. See instructions in my signature.
 
Upvote 0
I had similar issues to alan, but I am sure that Power Query will do what you need, which it to unpivot the data.

Start with converting your data into a table:
  • Select any cell in your data range
  • Either Insert > Table (3rd button from the left ) OR Ctrl + T
  • Please the give the Table a meaningful name (UnderTable Design > White box on the far left)
    (I normally use a prefix such as tbl_ to that when I can't remember the table name later I just need to type tbl and I get a list of my tables)
Once you have done that,
  • click anywhere in the table
  • Data > From Table Range (2nd lot of buttons from the left)
  • This will take you to the power query editor
  • On the right side, if your 2nd step is Changed Type, delete that step
  • Select all the column to the left of your first date column (shift + select)
  • Transform > Unpivot Columns > Unpivot Other Columns
  • Change all the column type (by clicking on the type characters to the left of the column name)
    Image of how mine looks below.
  • Rename column to what you want them to be.
  • Close and Load
  • Build you pivot using the newly created (by PQ) table
If you add or change data in your original table and refresh the Query it will automatically change.

My data types.

1620014725325.png
 
Upvote 0
Alex, thank you very much. That worked perfectly!
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,559
Members
449,089
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