#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default sumif functions

Trying to nest sumif functions. want to sumif column h if column b contains
value "jones" and column c contains value "a". Wrote formula
=sumif($b$5:$b$63,"jones",(sumif($c$5:$c$63,"a",h$ 5:h$63) formula not
accepted.
If I can't nest sumif's is there a way to use the and function?
--
Macil
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default sumif functions

=SUMPRODUCT(--(B5:B63="Jones"),--(C5:C63="a"),H5:H63)


You can't use AND and you can't nest SUMIF but you can use the above, of
course if you have 2007 it has a new function called SUMIFS which can use
multiple criteria

--


Regards,


Peo Sjoblom

"Macil" wrote in message
...
Trying to nest sumif functions. want to sumif column h if column b
contains
value "jones" and column c contains value "a". Wrote formula
=sumif($b$5:$b$63,"jones",(sumif($c$5:$c$63,"a",h$ 5:h$63) formula not
accepted.
If I can't nest sumif's is there a way to use the and function?
--
Macil



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default sumif functions

In xl2007, there's a new =sumifs() function.

In any version, you could use:
=sumproduct(--($b$5:$b$63="jones"),--($c$5:$c$63="a"),($h$4:$h$63))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Macil wrote:

Trying to nest sumif functions. want to sumif column h if column b contains
value "jones" and column c contains value "a". Wrote formula
=sumif($b$5:$b$63,"jones",(sumif($c$5:$c$63,"a",h$ 5:h$63) formula not
accepted.
If I can't nest sumif's is there a way to use the and function?
--
Macil


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default sumif functions

Thank you for your help - love excel, and always try to push it as far as it
can go. Now have another function to play with.
--
Macil


"Dave Peterson" wrote:

In xl2007, there's a new =sumifs() function.

In any version, you could use:
=sumproduct(--($b$5:$b$63="jones"),--($c$5:$c$63="a"),($h$4:$h$63))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Macil wrote:

Trying to nest sumif functions. want to sumif column h if column b contains
value "jones" and column c contains value "a". Wrote formula
=sumif($b$5:$b$63,"jones",(sumif($c$5:$c$63,"a",h$ 5:h$63) formula not
accepted.
If I can't nest sumif's is there a way to use the and function?
--
Macil


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default sumif functions

Hi,

you can also use the following array formula (Ctrl+Shift+Enter)

=sum(if((range1=name)*(range2="a"),sum_range))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Macil" wrote in message
...
Trying to nest sumif functions. want to sumif column h if column b
contains
value "jones" and column c contains value "a". Wrote formula
=sumif($b$5:$b$63,"jones",(sumif($c$5:$c$63,"a",h$ 5:h$63) formula not
accepted.
If I can't nest sumif's is there a way to use the and function?
--
Macil




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
Max/min functions similar to SUMIF Monte Milanuk[_2_] Excel Discussion (Misc queries) 3 July 23rd 08 09:57 AM
Nesting sumif functions JT Excel Worksheet Functions 10 February 2nd 08 12:04 AM
can you nest sumif functions ? SCarleton Excel Worksheet Functions 2 September 12th 06 11:22 AM
COUNTIF and SUMIF Functions DCSwearingen Excel Discussion (Misc queries) 6 July 12th 06 08:18 PM
SUMIF and COUNTIF functions Heather Excel Discussion (Misc queries) 1 March 5th 06 07:59 AM


All times are GMT +1. The time now is 07:04 PM.

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

About Us

"It's about Microsoft Excel"