Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default SUMPRODUCT with Date Range

Hello,

I have been searching this forum all day and I can't seem to get any code
that I find to work. Below is what I believe should work. Cell D349 has
3/1/2007 and cell D350 has 3/31/2007.

=SUMPRODUCT(--(B2:B347=--D349),--(B2:B347<=--D350),--(C2:R347="39BD382*"))

What I'm basically lookinf for is: if the part number 39BD8382 is present
anywhere in cell range C2:R347, how many shipped in March of 2007?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT with Date Range

If they are proper dates all you need is

=SUMPRODUCT(--(B2:B347=D349),--(B2:B347<=D350),--(ISNUMBER(SEARCH("39BD382",C2:R347))))


--
__________________________________
HTH

Bob

"LouD" wrote in message
...
Hello,

I have been searching this forum all day and I can't seem to get any code
that I find to work. Below is what I believe should work. Cell D349 has
3/1/2007 and cell D350 has 3/31/2007.

=SUMPRODUCT(--(B2:B347=--D349),--(B2:B347<=--D350),--(C2:R347="39BD382*"))

What I'm basically lookinf for is: if the part number 39BD8382 is present
anywhere in cell range C2:R347, how many shipped in March of 2007?

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default SUMPRODUCT with Date Range

Bob,

I get a #VALUE! error in the cell with the formula. I am supposed to hit
ctrl + shift + enter when I'm done editing the formula to put the { } around
it, right? And how do I check for proper dates? I know I have the cells
formatted as dates...
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT with Date Range

Firstly, apologies, I failed to spot the third criteria was multi-column.
Try

=SUMPRODUCT((B2:B347=D349)*(B2:B347<=D350)*(ISNUM BER(SEARCH("39BD382",C2:R347))))

Secondly, no, it is not array entered, just a standard formula.

--
__________________________________
HTH

Bob

"LouD" wrote in message
...
Bob,

I get a #VALUE! error in the cell with the formula. I am supposed to hit
ctrl + shift + enter when I'm done editing the formula to put the { }
around
it, right? And how do I check for proper dates? I know I have the cells
formatted as dates...



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default SUMPRODUCT with Date Range

Bob,

This formula works perfect:

=SUMPRODUCT((B2:B347=D349)*(B2:B347<=D350)*(ISNUM BER(SEARCH("39BD382",C2:R347))))

Thanks for all your help.


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
Sumproduct - Date Range Jackrabbit181 Excel Discussion (Misc queries) 1 July 12th 09 05:03 PM
sumproduct between date range Looping through Excel Worksheet Functions 14 December 20th 07 11:38 PM
Can a date range be used in SUMPRODUCT bruce Excel Worksheet Functions 2 December 17th 07 12:56 PM
SUMPRODUCT between date range Celia New Users to Excel 1 November 9th 06 06:39 PM
Sumproduct with date range ermeko Excel Worksheet Functions 6 August 16th 06 05:17 PM


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