#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Sumproduct question


Hi all mighty sumproduct experts.
What ovious thing do I have wrong?
G1 is the start date
G2 the end date
I wish to count all the jobs "Logged" between these dates
Col B holds the date the job was logged.


=SUMPRODUCT((B12:B100=G1),(B12:B100<=G2),H12:H100 ="Logged")

currently does not work
thanks
john
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Sumproduct question

Try this...

=SUMPRODUCT(--(B12:B100=G1),--(B12:B100<=G2),--(H12:H100="Logged"))
--
HTH...

Jim Thomlinson


"John in Wembley" wrote:


Hi all mighty sumproduct experts.
What ovious thing do I have wrong?
G1 is the start date
G2 the end date
I wish to count all the jobs "Logged" between these dates
Col B holds the date the job was logged.


=SUMPRODUCT((B12:B100=G1),(B12:B100<=G2),H12:H100 ="Logged")

currently does not work
thanks
john

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sumproduct question

Hi John,

try it like this:

=SUMPRODUCT(--(B12:B100=G1),--(B12:B100<=G2),--(H12:H100="Logged"))

Personally, I prefer it like this:

=SUMPRODUCT((B12:B100=G1)*(B12:B100<=G2)*(H12:H10 0="Logged"))

Hope this helps.

Pete

On Feb 12, 5:13*pm, John in Wembley wrote:
Hi all mighty sumproduct experts.
What ovious thing do I have wrong?
G1 is the start date
G2 the end date
I wish to count all the jobs "Logged" between these dates
Col B holds the date the job was logged.

=SUMPRODUCT((B12:B100=G1),(B12:B100<=G2),H12:H100 ="Logged")

currently does not work
thanks
john


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Sumproduct question

Or this...

=SUMPRODUCT((B12:B100=G1)*(B12:B100<=G2)*(H12:H10 0="Logged"))


"Jim Thomlinson" wrote:

Try this...

=SUMPRODUCT(--(B12:B100=G1),--(B12:B100<=G2),--(H12:H100="Logged"))
--
HTH...

Jim Thomlinson


"John in Wembley" wrote:


Hi all mighty sumproduct experts.
What ovious thing do I have wrong?
G1 is the start date
G2 the end date
I wish to count all the jobs "Logged" between these dates
Col B holds the date the job was logged.


=SUMPRODUCT((B12:B100=G1),(B12:B100<=G2),H12:H100 ="Logged")

currently does not work
thanks
john

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Sumproduct question

Hi John

You need to coerce the True/False result for each of those tests to 1's and
0's
Either use
=SUMPRODUCT(--(B12:B100=G1),--(B12:B100<=G2),--(H12:H100="Logged"))
or
=SUMPRODUCT((B12:B100=G1)*(B12:B100<=G2)*(H12:H10 0="Logged"))

--
Regards
Roger Govier

"John in Wembley" wrote in message
...

Hi all mighty sumproduct experts.
What ovious thing do I have wrong?
G1 is the start date
G2 the end date
I wish to count all the jobs "Logged" between these dates
Col B holds the date the job was logged.


=SUMPRODUCT((B12:B100=G1),(B12:B100<=G2),H12:H100 ="Logged")

currently does not work
thanks
john


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 question wx4usa Excel Discussion (Misc queries) 1 July 30th 07 11:52 PM
sumproduct question [email protected] Excel Discussion (Misc queries) 5 November 8th 06 10:17 PM
Sumproduct question Brad Excel Worksheet Functions 2 November 1st 06 07:32 PM
SUMPRODUCT QUESTION RGB Excel Discussion (Misc queries) 3 June 15th 06 05:11 PM
sumproduct question Dominique Feteau Excel Worksheet Functions 8 July 26th 05 08:43 AM


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