Frankenstein
New Member
- Joined
- Feb 15, 2024
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
- Web
Hello everyone,
Hoping someone can make quick work of this. I have a list of Manager titles and a list of Director titles. I'd like to search a database on a separate sheet and calculate two sums. One for all "manager titles" and one for all "Director" titles.
Typically i'd use a pivot table or the formula: =sum(sumif(Sheet2!B3:B15, {"Sales Manager", "Shipping Manager", "..."}, Sheet2!C3:C15) and call it a day. I have 2 problems with this:
A few things i have tried to give you an idea of my goal:
Hoping someone can make quick work of this. I have a list of Manager titles and a list of Director titles. I'd like to search a database on a separate sheet and calculate two sums. One for all "manager titles" and one for all "Director" titles.
Typically i'd use a pivot table or the formula: =sum(sumif(Sheet2!B3:B15, {"Sales Manager", "Shipping Manager", "..."}, Sheet2!C3:C15) and call it a day. I have 2 problems with this:
- My data is not tabular
- My list of manager titles is much longer than this
- I plan to use this formula in 10-20 cells, which if I ever need to add or remove criteria will be a huge PITA so I want all formulas to reference one list of titles.
A few things i have tried to give you an idea of my goal:
- I changed D2 to {"Sales Manager", "Shipping Manager", "Human Resources Mgr", "Finance Mgr"} and then used: =sum(sumif(Sheet2!B3:B15, indirect(D2), Sheet2!C3:C15) and tried =sum(sumif(Sheet2!B3:B15, D2, Sheet2!C3:C15)
- Changed D2 to "Sales Manager", "Shipping Manager", Human Resources Mgr", "Finance Mgr" and then used concatenation: =sum(sumif(Sheet2!B3:B15, "{"&D2&"}", Sheet2!C3:C15)