zepharoz
New Member
- Joined
- Jul 5, 2023
- Messages
- 11
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- Platform
- Windows
Hi I'm looking for help on this formula. Tried looking for resources everywhere with no success. Please see the attached.
The goal is to calculate the YTD totals of all the months for each of the the respective employees (i.e. Bob, etc) and each category (i.e. Bonus, Salary, Gross, Tax)
I am currently using the formula: =SUMPRODUCT(IFERROR(SUMIFS(INDIRECT("'"&Sheets&"*'!b:b"),INDIRECT("'"&Sheets&"*'!a:a"),$A4),0))
Where Sheets is the named ranged for the months and the name of the respective sheets.
Column B are the bonuses
Column A are the names of the employee
$A4 is the criteria I am using.
After playing around for around 2 hours, it seems to only take in 1 sheet (or 1 month). I'm unsure where the issue is.
The goal is to calculate the YTD totals of all the months for each of the the respective employees (i.e. Bob, etc) and each category (i.e. Bonus, Salary, Gross, Tax)
I am currently using the formula: =SUMPRODUCT(IFERROR(SUMIFS(INDIRECT("'"&Sheets&"*'!b:b"),INDIRECT("'"&Sheets&"*'!a:a"),$A4),0))
Where Sheets is the named ranged for the months and the name of the respective sheets.
Column B are the bonuses
Column A are the names of the employee
$A4 is the criteria I am using.
After playing around for around 2 hours, it seems to only take in 1 sheet (or 1 month). I'm unsure where the issue is.