#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Need advanced SUMIF

I have 11 columns of data and would normally use sumif to add up the values
based on the doc type added, however now the VAT rate has changed I need to
identify 2 critera in 2 columns and sumif wont allow that.

Any help would be greatfully accepted
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Need advanced SUMIF

Best to help yourself by searching google

sumproduct:excel

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Welshr2" wrote in message
...
I have 11 columns of data and would normally use sumif to add up the values
based on the doc type added, however now the VAT rate has changed I need
to
identify 2 critera in 2 columns and sumif wont allow that.

Any help would be greatfully accepted


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Need advanced SUMIF

You can use SUMPRODUCT

=SUMPRODUCT(--(A1:A100="cond1"),--(B1:B100="cond2"),(C1:C100))

This will sum values in Col C for those rows where Col A has the value cond1
and Col B has the value cond2


"Welshr2" wrote:

I have 11 columns of data and would normally use sumif to add up the values
based on the doc type added, however now the VAT rate has changed I need to
identify 2 critera in 2 columns and sumif wont allow that.

Any help would be greatfully accepted

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Need advanced SUMIF

Check out this link...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"Welshr2" wrote:

I have 11 columns of data and would normally use sumif to add up the values
based on the doc type added, however now the VAT rate has changed I need to
identify 2 critera in 2 columns and sumif wont allow that.

Any help would be greatfully accepted

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Need advanced SUMIF

On Jan 5, 4:06*pm, Welshr2 wrote:
I have 11 columns of data and would normally use sumif to add up the values
based on the doc type added, however now the VAT rate has changed I need to
identify 2 critera in 2 columns and sumif wont allow that.

Any help would be greatfully accepted


To elaborate a little more you can use Sumproduct like this
=SUMPRODUCT((A1:A10=5)*(B1:B10=9)*1). This would count if both
conditions were met in A and B. Here is how to add C if A and B are
met. =SUMPRODUCT((A1:A10=5)*(B1:B10=9)*(C1:C10)). Always make sure
that your arrays are the same size, like 1:10...

Jay
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Criteria for SUMIF Roberto Villa Real Excel Worksheet Functions 4 April 17th 09 01:57 AM
Advanced Sumif formula Eva Excel Worksheet Functions 7 June 30th 07 02:04 AM
Advanced Conditional Formatting Ideas Needed! (ok, maybe not that advanced...) shadestreet Excel Discussion (Misc queries) 2 July 21st 06 03:04 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 09:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"