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: 11
  • Sheet2.JPG
    Sheet2.JPG
    73.7 KB · Views: 11

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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