A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

OR within Criteria of SUMIF



 
 
Thread Tools Display Modes
  #1  
Old February 20th, 2010, 12:28 PM posted to microsoft.public.excel.newusers
Pekka Numminen
external usenet poster
 
Posts: 12
Default OR within Criteria of SUMIF

Is it possible to use the logical function OR within the "Criteria"
argument of SUMIF? If so, how?
  #2  
Old February 20th, 2010, 02:20 PM posted to microsoft.public.excel.newusers
Don Guillett[_2_]
external usenet poster
 
Posts: 607
Default OR within Criteria of SUMIF

You can with SUMPRODUCT

={"a","b"}

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Pekka Numminen" wrote in message
...
Is it possible to use the logical function OR within the "Criteria"
argument of SUMIF? If so, how?


  #3  
Old February 21st, 2010, 02:20 AM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default OR within Criteria of SUMIF

Sum column B where column A = Joe OR Sue:

=SUM(SUMIF(A1:A10,{"Joe","Sue"},B1:B10))

=SUMIF(A1:A10,"Joe",B1:B10)+SUMIF(A1:A10,"Sue",B1: B10)

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A10,{"Joe","Sue"},0))),B1:B10)

=SUMPRODUCT((A1:A10={"Joe","Sue"})*B1:B10)

Array entered** :

=SUM(IF(A1:A10={"Joe","Sue"},B1:B10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Pekka Numminen" wrote in message
...
Is it possible to use the logical function OR within the "Criteria"
argument of SUMIF? If so, how?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:15 PM.


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