Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Sumif function with a date range condition statement

I'm trying to sum the numbers in one column that fall within specified date
ranges listed in another column i.e. how many products were produced during a
given quarter throughout a fiscal year. The formula I've created looks
something like:

=SUMIF(L7:L226,"=AND(<9/30/2008,01/01/2009)",M7:M226)

or basically (SUMIF(dates column,date range condition, numbers column to sum))

I suspect that the problem lies within the formatting for the date range
condition, but I haven't been able to find the proper usage for using a date
range within a condition statement. Anyone out there know how to make this
work?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sumif function with a date range condition statement

Try this:
=SUMPRODUCT(((L7:L226<--"30 Sep 2008")+(L7:L226--"1 Jan
2009"))*(L7:L226<""),M7:M226)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,000 Files:354 Subscribers:53
xdemechanik
---
"COskibum" wrote:
I'm trying to sum the numbers in one column that fall within specified date
ranges listed in another column i.e. how many products were produced during a
given quarter throughout a fiscal year. The formula I've created looks
something like:

=SUMIF(L7:L226,"=AND(<9/30/2008,01/01/2009)",M7:M226)

or basically (SUMIF(dates column,date range condition, numbers column to sum))

I suspect that the problem lies within the formatting for the date range
condition, but I haven't been able to find the proper usage for using a date
range within a condition statement. Anyone out there know how to make this
work?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Sumif function with a date range condition statement

Max,

Thanks, the SUMPRODUCT function solved the problem!

"Max" wrote:

Try this:
=SUMPRODUCT(((L7:L226<--"30 Sep 2008")+(L7:L226--"1 Jan
2009"))*(L7:L226<""),M7:M226)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,000 Files:354 Subscribers:53
xdemechanik
---
"COskibum" wrote:
I'm trying to sum the numbers in one column that fall within specified date
ranges listed in another column i.e. how many products were produced during a
given quarter throughout a fiscal year. The formula I've created looks
something like:

=SUMIF(L7:L226,"=AND(<9/30/2008,01/01/2009)",M7:M226)

or basically (SUMIF(dates column,date range condition, numbers column to sum))

I suspect that the problem lies within the formatting for the date range
condition, but I haven't been able to find the proper usage for using a date
range within a condition statement. Anyone out there know how to make this
work?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sumif function with a date range condition statement

Welcome, glad it helped.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads: 16,000, Files: 354, Subscribers: 53
xdemechanik
---
"COskibum" wrote in message
...
Max,

Thanks, the SUMPRODUCT function solved the problem!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Sumif function with a date range condition statement

Max,

After entering more dates I realized that the solution you suggested didn't
work as I had envisioned. I did, however, find a work around that may not be
either elegant or efficient, but it works for me. For the work around I
created a series of SUMIF statements extracting the number of products
created through the:

first quarter (10/01 - 12/31)
=SUMIF(dates column range,"<01/01/2008",products column range)

half year
=SUMIF(dates column,"<04/01/2008",products column)

3/4 year
=SUMIF(dates column,"<07/01/2008",products column)

and finally the full year
=SUMIF(dates column,"<09/30/2008",products column)

The SUMIF statements are hidden in my spreadsheet underneath the dates
column. I then simply built a report block that entered the results of the
respective SUMIF statements into the proper quarter followed by subtracting
the SUMIF statement results for the prior quarter(s). For example the SUMIF
statement for 3/4 year extracts all of the products created through quarters
1,2,&3 and I then subtracted the products created in quarters 1 & 2 to arrive
at the number of products created in just quarter 3 and so forth. Not
exactly pretty, but it works.

BTW - I tried countless variants of date ranges in the conditional statement
of the SUMIF function, but could never get the syntax correct and I haven't
been able to find anything usefull in the Microsoft knowledge base.

Thanks for your suggestion and help!

"Max" wrote:

Welcome, glad it helped.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads: 16,000, Files: 354, Subscribers: 53
xdemechanik
---
"COskibum" wrote in message
...
Max,

Thanks, the SUMPRODUCT function solved the problem!






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
condition sumif commands based on date range? joek8724 Excel Discussion (Misc queries) 2 March 23rd 08 05:57 AM
SUMIF function with text color condition MrWallyWorld Excel Worksheet Functions 4 August 18th 06 04:05 AM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM
Date Format Inside of a SUMIF Statement Minitman Excel Worksheet Functions 9 June 13th 05 07:52 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


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