Sumproduct Formula

Jeff Podgorski

Board Regular
Joined
Sep 25, 2007
Messages
148
Hello,

I'm using =SUMPRODUCT(--('[Payroll 01-03-11.xls]Chassis 1'!$F$12:$F$26="61153"),'[Payroll 01-03-11.xls]Chassis 1'!$P$12:$P$26) and it is calculating correctly, I need to run this formula against every payroll sheet for 2011, is there an elegant way to copy this formula so the date range changes automatically so I don't have to modify the formula manually for each day?

I could also run the formula next to a list of dates and have it reference them, but I have no idea how to modify the formula for that to work.

Hope this makes sense.

Thanks
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You can use an indirect formula but if the sheets are in different workbooks they all have to be open (you'd also use YEAR and perhaps VALUE with the extracted date portion). Sounds like VBA is much better suited for this task.
 
Last edited:
Upvote 0
I tried the formula approach without VBA but got a REF error. It might not even be possible to combine sumproduct and indirect across workbooks. If someone here can't write some code to do this then you might consider a macro that converts your workbooks into tabs of a single workbook then another macro that stacks all the tabs in a single tab (these are easier to find).
 
Upvote 0

Forum statistics

Threads
1,203,225
Messages
6,054,244
Members
444,713
Latest member
SAK

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