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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SUM IF multiple criteria



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 08:29 PM
kennis
external usenet poster
 
Posts: n/a
Default SUM IF multiple criteria

I have figured out how to do SUMIF (A1:A8, "9", B1:B8) in order to calculate all the B values corresponding to anything greater than 9 in the A column. I am wondering how to create a function 9 AND 12. Is there any way of doing this?
  #2  
Old June 15th, 2004, 08:36 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default SUM IF multiple criteria

=SUMPRODUCT((A1:A88)*(A1:A812),(B1:B8))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"kennis" wrote in message
...
I have figured out how to do SUMIF (A1:A8, "9", B1:B8) in order to

calculate all the B values corresponding to anything greater than 9 in the A
column. I am wondering how to create a function 9 AND 12. Is there any
way of doing this?


  #3  
Old June 15th, 2004, 08:49 PM
kennis
external usenet poster
 
Posts: n/a
Default SUM IF multiple criteria

I am trying to add up everything in column B that corresponds with anything between 9-12 in column A. The SUMPRODUCT didn't work. I am only trying to add. I just cannot figure out how to do a SUMIF with a value greater than and less than.

"kennis" wrote:

I have figured out how to do SUMIF (A1:A8, "9", B1:B8) in order to calculate all the B values corresponding to anything greater than 9 in the A column. I am wondering how to create a function 9 AND 12. Is there any way of doing this?

  #4  
Old June 15th, 2004, 08:57 PM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default SUM IF multiple criteria

On Tue, 15 Jun 2004 12:29:02 -0700, kennis
wrote:

I have figured out how to do SUMIF (A1:A8, "9", B1:B8) in order to calculate all the B values corresponding to anything greater than 9 in the A column. I am wondering how to create a function 9 AND 12. Is there any way of doing this?


One way:

=SUMIF (A1:A8, "9", B1:B8) - SUMIF (A1:A8, "=12", B1:B8)


--ron
  #5  
Old June 15th, 2004, 11:52 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default SUM IF multiple criteria

You surprise me. It certainly works in my tests. What do you get?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"kennis" wrote in message
...
I am trying to add up everything in column B that corresponds with

anything between 9-12 in column A. The SUMPRODUCT didn't work. I am only
trying to add. I just cannot figure out how to do a SUMIF with a value
greater than and less than.

"kennis" wrote:

I have figured out how to do SUMIF (A1:A8, "9", B1:B8) in order to

calculate all the B values corresponding to anything greater than 9 in the A
column. I am wondering how to create a function 9 AND 12. Is there any
way of doing this?


  #6  
Old June 16th, 2004, 04:26 AM
Bob Cresto
external usenet poster
 
Posts: n/a
Default SUM IF multiple criteria

Try:

=SUM(B1:B8)-SUMIF(A1:A8,"11",B1:B8)-SUMIF(A1:A8,"10",B1:B8)


"Bob Phillips" wrote in message
...
You surprise me. It certainly works in my tests. What do you get?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"kennis" wrote in message
...
I am trying to add up everything in column B that corresponds with

anything between 9-12 in column A. The SUMPRODUCT didn't work. I am only
trying to add. I just cannot figure out how to do a SUMIF with a value
greater than and less than.

"kennis" wrote:

I have figured out how to do SUMIF (A1:A8, "9", B1:B8) in order to

calculate all the B values corresponding to anything greater than 9 in the

A
column. I am wondering how to create a function 9 AND 12. Is there any
way of doing this?




 




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 08:20 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.