Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2016, 05:06 AM
funkyfido funkyfido is offline SUMIFS across multiple closed workbooks Windows XP SUMIFS across multiple closed workbooks Office 2007
Novice
SUMIFS across multiple closed workbooks
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default SUMIFS across multiple closed workbooks

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?
Reply With Quote
  #2  
Old 01-14-2016, 05:56 AM
Debaser's Avatar
Debaser Debaser is offline SUMIFS across multiple closed workbooks Windows 7 64bit SUMIFS across multiple closed workbooks Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

Use SUMPRODUCT instead. What would your SUMIFS formula look like if it worked?
Reply With Quote
  #3  
Old 01-14-2016, 06:25 AM
funkyfido funkyfido is offline SUMIFS across multiple closed workbooks Windows XP SUMIFS across multiple closed workbooks Office 2007
Novice
SUMIFS across multiple closed workbooks
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 01-14-2016, 06:31 AM
Debaser's Avatar
Debaser Debaser is offline SUMIFS across multiple closed workbooks Windows 7 64bit SUMIFS across multiple closed workbooks Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

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))
Reply With Quote
  #5  
Old 01-14-2016, 06:43 AM
funkyfido funkyfido is offline SUMIFS across multiple closed workbooks Windows XP SUMIFS across multiple closed workbooks Office 2007
Novice
SUMIFS across multiple closed workbooks
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default

Thanks that works a treat. Why is the last part of the formulae a * and not a select? Want to understand how it works.
Reply With Quote
  #6  
Old 01-14-2016, 07:02 AM
Debaser's Avatar
Debaser Debaser is offline SUMIFS across multiple closed workbooks Windows 7 64bit SUMIFS across multiple closed workbooks Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

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.
Reply With Quote
  #7  
Old 01-14-2016, 08:55 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline SUMIFS across multiple closed workbooks Windows 7 64bit SUMIFS across multiple closed workbooks Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

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
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIFS across multiple closed workbooks Pull the data from different closed workbooks paste into master vba manilara Excel Programming 2 11-19-2015 08:41 PM
SUMIFS across multiple closed workbooks Vlookup multiple workbooks 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
SUMIFS across multiple closed workbooks Help with SUMIFS LeFoah Excel 2 10-20-2013 09:22 AM
Link multiple excel workbooks to publisher bandcsaravia Publisher 0 10-24-2011 09:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft