luismffaria
New Member
- Joined
- May 22, 2017
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
I have several sheets (each a project sheet), and two aggregated sheets that would represent 2 companies (each company aggregating part of the projects).
On each aggregated sheet (company) I want to sum the production of the projects that corresponds to it.
So, I've started something like:
=SUMPRODUCT(SUMIF(INDIRECT("'"&project_codes_list&"'!B5"),$B$5,INDIRECT("'"&project_codes_list&"'!K380")))
where,
"project_code_list" would be the list of the project sheets
on cell "B5" of each project sheet I would put the name/code of the company
Problem is that it works for that specific cell K380 (which corresponds do Dec 2017), but with this formula I cannot drag it to the right to get the corresponding amounts to the following year (column L: Dec 2018, column M: Dec 2019,...) because it keeps the same K380...
Any thoughts? I would prefer not to use VBA
Thank you
On each aggregated sheet (company) I want to sum the production of the projects that corresponds to it.
So, I've started something like:
=SUMPRODUCT(SUMIF(INDIRECT("'"&project_codes_list&"'!B5"),$B$5,INDIRECT("'"&project_codes_list&"'!K380")))
where,
"project_code_list" would be the list of the project sheets
on cell "B5" of each project sheet I would put the name/code of the company
Problem is that it works for that specific cell K380 (which corresponds do Dec 2017), but with this formula I cannot drag it to the right to get the corresponding amounts to the following year (column L: Dec 2018, column M: Dec 2019,...) because it keeps the same K380...
Any thoughts? I would prefer not to use VBA
Thank you