#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default If and Sumproduct

I have about 250 pieces of equipment that are serviced periodically every 3,
6 or 12 months. Each piece is located in a specific department and I want to
identify the number of pieces serviced in a defined time frame by department.

Column C contains service dates; column E contains the department names and
all columns between A & E have headings. The other columns have info not
related to the query. K1 & K2 contain the beginning and end dates for the
query.

The formula I wrote:
=IF(E$1:E$250="Research",SUMPRODUCT(C$1:C$250=K$1 )*(C$1:C$250<=K$2),0)
returns the value of 0. What have I done wrong?

Thanks,

Ron

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default If and Sumproduct

May be this:

=SUMPRODUCT(--(E$1:E$250="Research"),--(C$1:C$250=K$1),--(C$1:C$250<=K$2))


"ronnomad" wrote in message
...
I have about 250 pieces of equipment that are serviced periodically every
3,
6 or 12 months. Each piece is located in a specific department and I want
to
identify the number of pieces serviced in a defined time frame by
department.

Column C contains service dates; column E contains the department names
and
all columns between A & E have headings. The other columns have info not
related to the query. K1 & K2 contain the beginning and end dates for the
query.

The formula I wrote:
=IF(E$1:E$250="Research",SUMPRODUCT(C$1:C$250=K$1 )*(C$1:C$250<=K$2),0)
returns the value of 0. What have I done wrong?

Thanks,

Ron



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default If and Sumproduct

Perfect! Thanks.

"PCLIVE" wrote:

May be this:

=SUMPRODUCT(--(E$1:E$250="Research"),--(C$1:C$250=K$1),--(C$1:C$250<=K$2))


"ronnomad" wrote in message
...
I have about 250 pieces of equipment that are serviced periodically every
3,
6 or 12 months. Each piece is located in a specific department and I want
to
identify the number of pieces serviced in a defined time frame by
department.

Column C contains service dates; column E contains the department names
and
all columns between A & E have headings. The other columns have info not
related to the query. K1 & K2 contain the beginning and end dates for the
query.

The formula I wrote:
=IF(E$1:E$250="Research",SUMPRODUCT(C$1:C$250=K$1 )*(C$1:C$250<=K$2),0)
returns the value of 0. What have I done wrong?

Thanks,

Ron




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
Using SUMPRODUCT... matt_n Excel Worksheet Functions 2 October 20th 06 09:58 AM
SUMPRODUCT help [email protected] Excel Worksheet Functions 3 October 18th 06 11:00 PM
Sumproduct Jeremy Ellison Excel Worksheet Functions 1 December 9th 05 09:45 PM
Sumproduct carl Excel Worksheet Functions 5 November 21st 05 11:44 PM
SUMPRODUCT help svvm Excel Worksheet Functions 3 June 20th 05 02:06 PM


All times are GMT +1. The time now is 06:37 AM.

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"