#1   Report Post  
stuarthow
 
Posts: n/a
Default sumif help


Hi

Need some help with the SUMIF() function on Excel 2003 please:

I’m using this function as per example –

=SUMIF(month(B5:B12),month(B15),C5:C12)

where B5:B12 are regular dates (dd/mm/yyyy), B15 is a ‘month’ date (mmm
yyyy) and C5:C12 are ordinary numbers.

When entered, I get returned the warning box ‘The formula you typed
contains an error’

Help would be gratefully welcome.
Stuart


--
stuarthow
------------------------------------------------------------------------
stuarthow's Profile: http://www.excelforum.com/member.php...o&userid=25417
View this thread: http://www.excelforum.com/showthread...hreadid=388975

  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

B15: 1-Jul-04

Then invoke:

=SUMIF($B$5:$B$12,"="&B15,$C$5:$C$12)-SUMIF($B$5:$B$12,""&EOMONTH(B15,0),$C$5:$C$12)

EOMONTH requires the Analysis Toolpak add-in (see Tools|Add-Ins)

stuarthow wrote:
Hi

Need some help with the SUMIF() function on Excel 2003 please:

I’m using this function as per example –

=SUMIF(month(B5:B12),month(B15),C5:C12)

where B5:B12 are regular dates (dd/mm/yyyy), B15 is a ‘month’ date (mmm
yyyy) and C5:C12 are ordinary numbers.

When entered, I get returned the warning box ‘The formula you typed
contains an error’

Help would be gratefully welcome.
Stuart



--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #3   Report Post  
aristotle
 
Posts: n/a
Default

Does this work?

=SUM(MONTH(B5:B12)=MONTH(B15),C5:C12)

Once entered don't just hit enter, use Ctrl+Shift+Enter and it should
generate an array formula.

Regards,
A


"stuarthow" wrote:


Hi

Need some help with the SUMIF() function on Excel 2003 please:

Im using this function as per example €“

=SUMIF(month(B5:B12),month(B15),C5:C12)

where B5:B12 are regular dates (dd/mm/yyyy), B15 is a €˜month date (mmm
yyyy) and C5:C12 are ordinary numbers.

When entered, I get returned the warning box €˜The formula you typed
contains an error

Help would be gratefully welcome.
Stuart


--
stuarthow
------------------------------------------------------------------------
stuarthow's Profile: http://www.excelforum.com/member.php...o&userid=25417
View this thread: http://www.excelforum.com/showthread...hreadid=388975


  #4   Report Post  
stuarthow
 
Posts: n/a
Default


Thanks Aladin / aristotle!

Aladin's code works fine, although can't say I understand why, will
have a play!

aristotle's sums the whole range of numbers, think that when the
argument returns true the whole range C5:C12 is summed.

Thanks again
Stu


--
stuarthow
------------------------------------------------------------------------
stuarthow's Profile: http://www.excelforum.com/member.php...o&userid=25417
View this thread: http://www.excelforum.com/showthread...hreadid=388975

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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF Not vanjohnson Excel Discussion (Misc queries) 1 March 4th 05 08:42 PM
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
help with "criterea" in the sumif function [email protected] Excel Worksheet Functions 3 December 17th 04 06:27 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 06:45 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"