Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2015, 05:10 PM
gebobs gebobs is offline How to make Excel stop treating blank cells as zero Windows 7 64bit How to make Excel stop treating blank cells as zero Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

What sumproduct does is give a sum of all the products of values in one range multiplied with those in another (or more even). For your example, it is effectively summing (0*194), (0*286), and (1*52).



Sumproduct is great at extracting data from a table based on multiple criteria. Say you have a table with EntryDate, Customer, Type, Amount and you want all the total amount of the records for 1/5/14 for XYZ Inc. that are credits:

=sumproduct(EntryDate=Datevalue("1/5/14")*(Customer="XYZ Corp.)*(Type="C"),(Amount))

Your equation will work if written as:

=SUMIF(b2:b4,">0", c2:c4)

The criteria has to be a string.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Excel stop treating blank cells as zero Excel VBA - Mandatory cells cannot stay blank? hussnainh8 Excel 9 12-28-2014 09:40 AM
Help with Subtotal(103, ) formula and blank cells zhl203 Excel 1 07-30-2014 03:40 PM
How to make Excel stop treating blank cells as zero want to make letterhead template with second page blank William Whitney Word 4 06-20-2014 05:59 AM
Join cells together separated by ; when some are blank leemoreau Excel 3 11-03-2013 11:22 AM
How to make Excel stop treating blank cells as zero How to stop correcting zeroes in cells ? kevin_ms Excel 4 09-14-2008 10:08 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:51 PM.


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