How to pivot/summarize table of values by single row but multiple date columns?

nshepo20

New Member
Joined
Jun 8, 2021
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

Every month I get this table (Clients) where I am given costs broken out by rows of clients and columns of weeks. However, I need to summarize these values by Client and Month instead of week (Sheet2).
Pivot tables don't seem to read across columns and my current sumproduct formula is ok but requires having to manually select the range of weeks that correspond to the month.
Would anyone know a better way to summarize this data by Month that doesn't require manually selecting the range of columns that correspond? Is such a thing possible?
Please see attached pictures for the client data (Client) and the summary sheet (Sheet2) with the current formula shown in the formula bar
Excel Formula:
=SUMPRODUCT((Clients!$A$5:$A$22=Sheet2!$B3)*Clients!$B$5:$E$22)
.

thanks!
 

Attachments

  • Clients.JPG
    Clients.JPG
    117.1 KB · Views: 7
  • Sheet2.JPG
    Sheet2.JPG
    73.7 KB · Views: 7

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,215,650
Messages
6,126,010
Members
449,280
Latest member
Miahr

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