VBA - SUMIFS of multiple worksheets in another workbook

analysethis

New Member
Joined
Jan 5, 2014
Messages
1
HI

I've been trying for days and looking through the forums, but i can't figure out how to do it. :(

I have 2 workbooks. One with the data and one where i want to synthesize the data.

In the second one, i want to do a SUMIFS of the data in the first workbook.
SUMIFS of the values with these conditions:
Same FUND (ex: MFBN0815 but using a variable since it won't always be the same criteria)
Same Serie (ex: Conseiller but using a variable since it won't always be the same criteria)
> or = to Date From
< or = to Date to

I know how to do it if the data is all in the same worksheet (using a SUMIFS formula), but i just can't figure out how to do it if it's in various worksheets (variable number of worksheets).


Example of the fist workbook with the data (there will be many worksheets like this):
FUNDSERIEDATEVALUE
MFBN0815Conseiller2013/10/0110 000$
MFBN0815Conseiller2013/10/0210 500$
MFBN0815Investisseur2013/10/0120 000$
MFBN0817Conseiller2013/10/0150 000$

<tbody>
</tbody>

Example of the second workbook where i want to synthesize the data:
FUNDSERIEDATE FROMDATE TOSUMIFS
MFBN0815Conseiller2013/09/252013/10/02??????

<tbody>
</tbody>



Any idea?

Thank you
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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