SUMIFS Multi-Column Reference Cross Sheet Row and Column Criteria
My goal with this formula is to sum the total across a range of columns based on the values in columns and rows.
I don't have an issue when the reference range is limited to a single column, but I'm getting an #INCORRECT ARGUMENT SET error when attempting to reference an array of columns (which will work for Supply but NOT for Demand), and incorporating a criteria that assesses the header row in the source sheet, and only sum those that match in the destination sheet column@row.
My source sheet: Resource supply by portfolio for each period/month.
My destination sheet: Resource supply/demand/variance by portfolio for each period/month.
Destination sheet formula:
=SUMIFS({Resource Supply by Portfolio}, {Department}, $Department@row, {Period}, [Period 1]$1, {Header Row}, $Portfolio@row)
Resource Supply by Portfolio range below
Answers
-
Hello @scamiolo
SUMIFS only support 1 column for sum range.
So for PD Supply your {Resource Supply by Portfolio} should only be for the PD Supply column.
You'll need to create 1 SUMIFS per portfolio.
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined -
Thanks @Melissa Yamada! I can make due with that for the supply, but I'm struggling with an approach for demand.
My source sheet includes a header row that specifies the portfolio, with individual columns for each project within a portfolio.
What I'm looking to achieve here is the same as supply, but I would like to sum based on portfolio. Any thoughts on an approach to achieve this?
-
Hello @scamiolo
Since you have different columns per portfolio, your formula should look at 1 portfolio per formula.
For example:
For Supply:
=SUMIFS({Resource Supply Column}, {Department}, $Department@row, {Period}, [Period 1]$1)
For Demand:
=SUMIFS({Demand Column}, {Department}, $Department@row, {Period}, [Period 1]$1)
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined -
@Melissa Yamada Thanks! I follow, however I'm still not sure how to get this to work for Demand, since the demand for each portfolio is captured across a variety of rows, with new projects being added removed over time. I would like to avoid having to create a formula in the source sheet to summarize total demand for each portfolio to limit risk of human error.
Is there a work around you can think of..? Maybe creating a separate sheet to summarize by Portfolio?
-
@scamiolo can you share a screenshot of your columns/rows that are for demand? want to make sure I am aligned with how your sheet is set-up.
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined -
@Melissa Yamada Sure! See below.
Row 1 includes the acronym for the portfolio. I'm looking to sum all columns for a given portfolio in a separate sheet which includes the supply, and calculate variance.
Looking to them plot all of this but haven't gotten there yet.
-
@scamiolo which columns refers to the demand?
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 451 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!