![]() |
|
#1
|
|||
|
|||
![]()
I am looking to sum a field based on two levels of criteria (non numeric) across several wookbooks which are closed. The usual sumifs won't work. Any idea how to get around this?
|
#2
|
||||
|
||||
![]()
Use SUMPRODUCT instead. What would your SUMIFS formula look like if it worked?
|
#3
|
|||
|
|||
![]()
I would have had this on each of my spreadsheets.
=SUMIFS('Dec15 Pt2'!$S:$S,'Dec15 Pt2'!$N:$N,$A3,'Dec15 Pt2'!$R:$R,$B3) For each month I have several parts all in different excel files. |
#4
|
||||
|
||||
![]()
You really don't want to use entire columns in a SUMPRODUCT formula so you'll need to limit the rows:
=SUMPRODUCT('C:\path to file\[WORKBOOK.XLSX]Dec15 Pt2'!$S$1:$S$1000,('C:\path to file\[WORKBOOK.XLSX]Dec15 Pt2'!$N$1:$N$1000=$A3)*('C:\path to file\[WORKBOOK.XLSX]Dec15 Pt2'!$R$1:$R$1000=$B3)) |
#5
|
|||
|
|||
![]()
Thanks that works a treat. Why is the last part of the formulae a * and not a select? Want to understand how it works.
|
#6
|
||||
|
||||
![]()
The last section creates two arrays of TRUE and FALSE values. SUMPRODUCT ignores these values, so to make them count the two arrays are multiplied together. For the multiplication, TRUE is coerced to 1 and FALSE to 0, so you end up with an array of 0 and 1 which is then multiplied by the actual data values before they are then summed up.
|
#7
|
||||
|
||||
![]()
Just to add to Debaser's explanation: any arithmetic operation performed on TRUE or FALSE will coerce them to 1 or 0
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
manilara | Excel Programming | 2 | 11-19-2015 08:41 PM |
![]() |
c123456 | Excel | 3 | 03-13-2015 12:59 PM |
Office 2008 workbooks into Office 2011 workbooks | nfotx | Excel | 0 | 12-07-2014 04:22 PM |
![]() |
LeFoah | Excel | 2 | 10-20-2013 09:22 AM |
Link multiple excel workbooks to publisher | bandcsaravia | Publisher | 0 | 10-24-2011 09:14 AM |