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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,635
Messages
6,125,945
Members
449,275
Latest member
jacob_mcbride

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