#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim
 
Posts: n/a
Default =SUMPRODUCT

I am using this formula to count the number of times closed appears between
particular dates:

=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted to
Also count the number of times Not Stated and In Progress are shown.
However when I do I am receiving a 0 number in return. The formula I wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default =SUMPRODUCT

Hi!

Try this:

=SUMPRODUCT(--(D1:D50000=C6),--(ISNUMBER(MATCH(G1:G50000,{"Closed","In
Progress","Not Started"},0))),--(A1:A50000=AN1),--(A1:A50000<=AO1))

Biff

"Jim" wrote in message
...
I am using this formula to count the number of times "closed" appears
between
particular dates:

=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted to
Also count the number of times "Not Stated" and "In Progress" are shown.
However when I do I am receiving a '0' number in return. The formula I
wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default =SUMPRODUCT

If you're looking to get individual counts for "Closed", "Not Started", and
"In Progress", just copy your original formula to another cell and change
"Closed" to one of the other values.

Example:
=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Not
Started")*($A$1:$A$23=$I$2)*($A$1:$A$23<=$J$2))

However, if you are looking for a single count of all items that are either
"Closed", "Not Started", OR "In Progress", then take a look at my response in
your "count if" thread.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jim" wrote:

I am using this formula to count the number of times closed appears between
particular dates:

=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted to
Also count the number of times Not Stated and In Progress are shown.
However when I do I am receiving a 0 number in return. The formula I wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default =SUMPRODUCT

=SUMPRODUCT((--CS_Ticket_Report_Dump!D$1:D$50000=C6)*
--(CS_Ticket_Report_Dump!G$1:G$50000={"Closed")*,"In Progress,"Not
Started")*
--(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
--(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


--
HTH

RP
"Jim" wrote in message
...
I am using this formula to count the number of times "closed" appears

between
particular dates:


=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1
:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted to
Also count the number of times "Not Stated" and "In Progress" are shown.
However when I do I am receiving a '0' number in return. The formula I

wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default =SUMPRODUCT

Hey, Bob

Absent the couple typos that snuck in there...I like your approach!

Here's what I did with it:
=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*(CS_Ticket_ Report_Dump!G$1:G$50000={"Closed","In Progress,"Not
Started"})*(CS_Ticket_Report_Dump!A$1:A$50000=AN$ 1)*(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


***********
Best Regards,
Ron

XL2002, WinXP-Pro


"Bob Phillips" wrote:

=SUMPRODUCT((--CS_Ticket_Report_Dump!D$1:D$50000=C6)*
--(CS_Ticket_Report_Dump!G$1:G$50000={"Closed")*,"In Progress,"Not
Started")*
--(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
--(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


--
HTH

RP
"Jim" wrote in message
...
I am using this formula to count the number of times "closed" appears

between
particular dates:


=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1
:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted to
Also count the number of times "Not Stated" and "In Progress" are shown.
However when I do I am receiving a '0' number in return. The formula I

wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default =SUMPRODUCT

Hey Ron,

Just noticed your leading double unary as well.

If you use the mulitiplier, double unary is not required, even for the firt
condition, as multiplying the first TRUE/FALS arraty by the second forves a
composite 1/0 array.

--
HTH

RP
"Ron Coderre" wrote in message
...
Hey, Bob

Absent the couple typos that snuck in there...I like your approach!

Here's what I did with it:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*(CS_Ticket_ Report_Dump!
G$1:G$50000={"Closed","In Progress,"Not

Started"})*(CS_Ticket_Report_Dump!A$1:A$50000=AN$ 1)*(CS_Ticket_Report_Dump!
A$1:A$50000<=AO$1))


***********
Best Regards,
Ron

XL2002, WinXP-Pro


"Bob Phillips" wrote:

=SUMPRODUCT((--CS_Ticket_Report_Dump!D$1:D$50000=C6)*
--(CS_Ticket_Report_Dump!G$1:G$50000={"Closed")*,"In Progress,"Not
Started")*
--(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
--(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


--
HTH

RP
"Jim" wrote in message
...
I am using this formula to count the number of times "closed" appears

between
particular dates:



=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1
:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted

to
Also count the number of times "Not Stated" and "In Progress" are

shown.
However when I do I am receiving a '0' number in return. The formula

I
wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default =SUMPRODUCT

Them darn asterisks!

Bob


"Ron Coderre" wrote in message
...
Hey, Bob

Absent the couple typos that snuck in there...I like your approach!

Here's what I did with it:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*(CS_Ticket_ Report_Dump!
G$1:G$50000={"Closed","In Progress,"Not

Started"})*(CS_Ticket_Report_Dump!A$1:A$50000=AN$ 1)*(CS_Ticket_Report_Dump!
A$1:A$50000<=AO$1))


***********
Best Regards,
Ron

XL2002, WinXP-Pro


"Bob Phillips" wrote:

=SUMPRODUCT((--CS_Ticket_Report_Dump!D$1:D$50000=C6)*
--(CS_Ticket_Report_Dump!G$1:G$50000={"Closed")*,"In Progress,"Not
Started")*
--(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
--(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


--
HTH

RP
"Jim" wrote in message
...
I am using this formula to count the number of times "closed" appears

between
particular dates:



=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1
:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted

to
Also count the number of times "Not Stated" and "In Progress" are

shown.
However when I do I am receiving a '0' number in return. The formula

I
wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default =SUMPRODUCT

Yeah...I know...it's redundant...but, I just can't break that habit.


***********
Best Regards,
Ron

XL2002, WinXP-Pro


"Bob Phillips" wrote:

Hey Ron,

Just noticed your leading double unary as well.

If you use the mulitiplier, double unary is not required, even for the firt
condition, as multiplying the first TRUE/FALS arraty by the second forves a
composite 1/0 array.

--
HTH

RP
"Ron Coderre" wrote in message
...
Hey, Bob

Absent the couple typos that snuck in there...I like your approach!

Here's what I did with it:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*(CS_Ticket_ Report_Dump!
G$1:G$50000={"Closed","In Progress,"Not

Started"})*(CS_Ticket_Report_Dump!A$1:A$50000=AN$ 1)*(CS_Ticket_Report_Dump!
A$1:A$50000<=AO$1))


***********
Best Regards,
Ron

XL2002, WinXP-Pro


"Bob Phillips" wrote:

=SUMPRODUCT((--CS_Ticket_Report_Dump!D$1:D$50000=C6)*
--(CS_Ticket_Report_Dump!G$1:G$50000={"Closed")*,"In Progress,"Not
Started")*
--(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
--(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


--
HTH

RP
"Jim" wrote in message
...
I am using this formula to count the number of times "closed" appears
between
particular dates:



=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1
:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted

to
Also count the number of times "Not Stated" and "In Progress" are

shown.
However when I do I am receiving a '0' number in return. The formula

I
wrote
was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.







  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default =SUMPRODUCT

"Bob Phillips" wrote...
=SUMPRODUCT((--CS_Ticket_Report_Dump!D$1:D$50000=C6)*
--(CS_Ticket_Report_Dump!G$1:G$50000={"Closed")*,"In Progress,"Not
Started")*
--(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
--(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

....

If the OP would be willing to put Closed, In Progress and Not Started into
separate adjacent cells, say, X99:Z99, then the formula could be simplified
to

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6),
COUNTIF(X99:Z99,CS_Ticket_Report_Dump!G$1:G$50000) ,
--(ABS(CS_Ticket_Report_Dump!A$1:A$50000-(AN$1+AO$1)/2)<=(AO$1-AN$1)/2))


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default =SUMPRODUCT

--ISNUMBER(MATCH(Range,{...},0))

or

--ISNUMBER(MATCH(Range,ConditionList,0))

are more efficient conditionals than

--(Range={...})

or

--(Range=ConditionList)


Ron Coderre wrote:
Hey, Bob

Absent the couple typos that snuck in there...I like your approach!

Here's what I did with it:
=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*(CS_Ticket_ Report_Dump!G$1:G$50000={"Closed","In Progress,"Not
Started"})*(CS_Ticket_Report_Dump!A$1:A$50000=AN$ 1)*(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


***********
Best Regards,
Ron

XL2002, WinXP-Pro


"Bob Phillips" wrote:


=SUMPRODUCT((--CS_Ticket_Report_Dump!D$1:D$50000=C6)*
--(CS_Ticket_Report_Dump!G$1:G$50000={"Closed")*,"In Progress,"Not
Started")*
--(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
--(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))


--
HTH

RP
"Jim" wrote in message
...

I am using this formula to count the number of times "closed" appears


between

particular dates:



=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1
:$A$23<=$J$2))

I have tried applying the same logic to another formula where I wanted to
Also count the number of times "Not Stated" and "In Progress" are shown.
However when I do I am receiving a '0' number in return. The formula I


wrote

was:

=SUMPRODUCT(--(CS_Ticket_Report_Dump!D$1:D$50000=C6)*
(CS_Ticket_Report_Dump!G$1:G$50000="Closed")*
(CS_Ticket_Report_Dump!G$1:G$50000="In Progress")*
(CS_Ticket_Report_Dump!G$1:G$50000="Not Started")*
(CS_Ticket_Report_Dump!A$1:A$50000=AN$1)*
(CS_Ticket_Report_Dump!A$1:A$50000<=AO$1))

What am I missing?

Thanks for your help.





--

[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.
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 formula help Anthony Excel Worksheet Functions 5 January 4th 06 04:30 PM
sumproduct between 2 ranges Patty via OfficeKB.com Excel Discussion (Misc queries) 4 July 14th 05 08:53 PM
Sumif Linking to Another Workbook error #VALUE! Tunde Excel Discussion (Misc queries) 16 March 4th 05 03:02 AM
=SUMPRODUCT and =IF Jim Excel Worksheet Functions 3 January 13th 05 07:25 PM


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