Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 107
Default SUMPRODUCT with Date?

I'm trying to use the formula below, but its not working correctly. On the
Hiring tab, column T has a date formatted as MM/DD/YYYY. I want a formula
that counts the number of hires in a quarter with other criteria. So for
instance if column U = A3 (Cons) and column D = GMT and column T is in 1Q
(Jan thru March). I'll also need the same formula for 2Q (April thru June),
3Q & 4Q.

=SUMPRODUCT(--(Hiring!U1:U500=A3),--(Hiring!D1:D500=B2),--(MONTH(Hiring!T1:T500<=3)))

A3=Cons
B2=GMT


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT with Date?

Try this...

=SUMPRODUCT(--(Hiring!U1:U500=A3),--(Hiring!D1:D500=B2),--(CEILING(MONTH(Hiring!T1:T500)/3,1)=n))

Where n = the quarter number 1 to 4.

--
Biff
Microsoft Excel MVP


"KC" wrote in message
...
I'm trying to use the formula below, but its not working correctly. On
the
Hiring tab, column T has a date formatted as MM/DD/YYYY. I want a formula
that counts the number of hires in a quarter with other criteria. So for
instance if column U = A3 (Cons) and column D = GMT and column T is in 1Q
(Jan thru March). I'll also need the same formula for 2Q (April thru
June),
3Q & 4Q.

=SUMPRODUCT(--(Hiring!U1:U500=A3),--(Hiring!D1:D500=B2),--(MONTH(Hiring!T1:T500<=3)))

A3=Cons
B2=GMT




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default SUMPRODUCT with Date?

Hello:

I think that the following is incorrect:
--(MONTH(Hiring!T1:T500<=3)))

Try

--(MONTH(Hiring!T1:T500)<=3))

ie

SUMPRODUCT(--(Hiring!U1:U500=A3),--(Hiring!D1:D500=B2),--(MONTH(Hiring!T1:T500)<=3))

--
Hope this helps
Martin Fishlock, www.nyfconsultants.com, Wolverhampton, UK
Please do not forget to rate this reply.


"KC" wrote:

I'm trying to use the formula below, but its not working correctly. On the
Hiring tab, column T has a date formatted as MM/DD/YYYY. I want a formula
that counts the number of hires in a quarter with other criteria. So for
instance if column U = A3 (Cons) and column D = GMT and column T is in 1Q
(Jan thru March). I'll also need the same formula for 2Q (April thru June),
3Q & 4Q.

=SUMPRODUCT(--(Hiring!U1:U500=A3),--(Hiring!D1:D500=B2),--(MONTH(Hiring!T1:T500<=3)))

A3=Cons
B2=GMT


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default SUMPRODUCT with Date?

That was going to be my response, but the site went sloooooow on me.

T.Valko's will give the quarter, which may aid him further down the road
rather than having to add yet another --() to see if the month is between 3:7
(2nd qtr), 6:10 (3rd qtr) or altering to 9 for 4th quarter.

"Martin Fishlock" wrote:

Hello:

I think that the following is incorrect:
--(MONTH(Hiring!T1:T500<=3)))

Try

--(MONTH(Hiring!T1:T500)<=3))

ie

SUMPRODUCT(--(Hiring!U1:U500=A3),--(Hiring!D1:D500=B2),--(MONTH(Hiring!T1:T500)<=3))

--
Hope this helps
Martin Fishlock, www.nyfconsultants.com, Wolverhampton, UK
Please do not forget to rate this reply.


"KC" wrote:

I'm trying to use the formula below, but its not working correctly. On the
Hiring tab, column T has a date formatted as MM/DD/YYYY. I want a formula
that counts the number of hires in a quarter with other criteria. So for
instance if column U = A3 (Cons) and column D = GMT and column T is in 1Q
(Jan thru March). I'll also need the same formula for 2Q (April thru June),
3Q & 4Q.

=SUMPRODUCT(--(Hiring!U1:U500=A3),--(Hiring!D1:D500=B2),--(MONTH(Hiring!T1:T500<=3)))

A3=Cons
B2=GMT


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 by Date Curtis Excel Worksheet Functions 3 September 9th 09 01:59 AM
Sumproduct? by date WH99 Excel Discussion (Misc queries) 9 June 21st 08 07:17 PM
Sumproduct by date WH99 Excel Discussion (Misc queries) 3 May 27th 08 11:49 AM
Sumproduct using date jhicsupt Excel Discussion (Misc queries) 3 February 10th 08 11:42 PM
sumproduct by date maryj Excel Worksheet Functions 3 June 8th 05 03:20 PM


All times are GMT +1. The time now is 12:44 PM.

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"