Solved

# Function Question in Excel

Posted on 2011-10-27
232 Views
I have attached the spreadsheet for your reference. I am wanting to use the sumifs function, but have not been able to get it to work. I’m fine with using named ranges, arrays, etc. My goal is to not have to create another column or sheet to get the calculation to work. I designed a diagram on sheet three to show what I am trying to do.  Any guidance you have for this I would greatly appreciate the help.
Function-Question.xlsx
0
Question by:karaflanagan

LVL 24

Expert Comment

I would add state as a column in your first table (so in D2 and down =VLOOKUP(A2,Sheet2!\$A\$2:\$B\$4,2,FALSE)) and then you can use

=SUMPRODUCT((Sheet1!\$D\$2:\$D\$5=A2)*(Sheet1!\$B\$2:\$B\$5=B2)*(Sheet1!\$C\$2:\$C\$5))
0

LVL 50

Accepted Solution

You can use this "array formula" in C2

=SUM(IF(Sheet1!B\$2:B\$5=B2,IF(ISNUMBER(MATCH(Sheet1!A\$2:A\$5,IF(Sheet2!B\$2:B\$4=A2,Sheet2!A\$2:A\$4),0)),Sheet1!C\$2:C\$5)))

confirmed with CTRL+SHIFT+ENTER

see attached

regards, barry
27419472.xlsx
0

Author Comment

I am reviewing these options and will respond shortly.  Thanks for the help!
0

## Featured Post

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
My experience with Windows 10 over a one year period and suggestions for smooth operation
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…