Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default WHETHER TO USE COUNTIF, SUMIF or SUMPRODUCT

I have 2 columns: names in column F and dates in column G.

COL A COL B
JET 4/1
JET 4/1
JET 4/1
FRED 4/1

I am trying to calculate the number of times a person completed a project on
April 1, so the function needs both their initials and a date filled in, in
order to be counted as one.

I've tried several countif, sumif and sum product funtions and unable to get
any to work.
ie.
=SUMPRODUCT((F2:F1308="JET")*(G2:G1308="4/1"))
=COUNTIF(F2:F1308,"=JET")-COUNTIF(G2:G1308,"=1-Apr")
=SUM(IF(F2:F1308="JET",IF(G2:G1308="April 1, 2009",1,0)))

JET actually completed 3 projects on 4/1, but I always get a zero total. I
tried changing the date format, but that didn't work either.
Any help is appreciated.

Cheers
dblevins
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default WHETHER TO USE COUNTIF, SUMIF or SUMPRODUCT

Try it this way:

=sumproduct(--(f2:f5="JET"),--(g2:g5=date(2009,4,1)))

Regards,
Fred

"dblevins" wrote in message
...
I have 2 columns: names in column F and dates in column G.

COL A COL B
JET 4/1
JET 4/1
JET 4/1
FRED 4/1

I am trying to calculate the number of times a person completed a project
on
April 1, so the function needs both their initials and a date filled in,
in
order to be counted as one.

I've tried several countif, sumif and sum product funtions and unable to
get
any to work.
ie.
=SUMPRODUCT((F2:F1308="JET")*(G2:G1308="4/1"))
=COUNTIF(F2:F1308,"=JET")-COUNTIF(G2:G1308,"=1-Apr")
=SUM(IF(F2:F1308="JET",IF(G2:G1308="April 1, 2009",1,0)))

JET actually completed 3 projects on 4/1, but I always get a zero total. I
tried changing the date format, but that didn't work either.
Any help is appreciated.

Cheers
dblevins



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default WHETHER TO USE COUNTIF, SUMIF or SUMPRODUCT

You were quite close:

=SUMPRODUCT((F2:F1308="JET")*(MONTH(G2:G1308)=4))

--
Gary''s Student - gsnu200845
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default WHETHER TO USE COUNTIF, SUMIF or SUMPRODUCT

Excellent! This worked. Thank you so much!
--
DB


"Fred Smith" wrote:

Try it this way:

=sumproduct(--(f2:f5="JET"),--(g2:g5=date(2009,4,1)))

Regards,
Fred

"dblevins" wrote in message
...
I have 2 columns: names in column F and dates in column G.

COL A COL B
JET 4/1
JET 4/1
JET 4/1
FRED 4/1

I am trying to calculate the number of times a person completed a project
on
April 1, so the function needs both their initials and a date filled in,
in
order to be counted as one.

I've tried several countif, sumif and sum product funtions and unable to
get
any to work.
ie.
=SUMPRODUCT((F2:F1308="JET")*(G2:G1308="4/1"))
=COUNTIF(F2:F1308,"=JET")-COUNTIF(G2:G1308,"=1-Apr")
=SUM(IF(F2:F1308="JET",IF(G2:G1308="April 1, 2009",1,0)))

JET actually completed 3 projects on 4/1, but I always get a zero total. I
tried changing the date format, but that didn't work either.
Any help is appreciated.

Cheers
dblevins




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default WHETHER TO USE COUNTIF, SUMIF or SUMPRODUCT

Glad I could help. Thanks for the feedback.

Regards,
Fred.

"dblevins" wrote in message
...
Excellent! This worked. Thank you so much!
--
DB


"Fred Smith" wrote:

Try it this way:

=sumproduct(--(f2:f5="JET"),--(g2:g5=date(2009,4,1)))

Regards,
Fred

"dblevins" wrote in message
...
I have 2 columns: names in column F and dates in column G.

COL A COL B
JET 4/1
JET 4/1
JET 4/1
FRED 4/1

I am trying to calculate the number of times a person completed a
project
on
April 1, so the function needs both their initials and a date filled
in,
in
order to be counted as one.

I've tried several countif, sumif and sum product funtions and unable
to
get
any to work.
ie.
=SUMPRODUCT((F2:F1308="JET")*(G2:G1308="4/1"))
=COUNTIF(F2:F1308,"=JET")-COUNTIF(G2:G1308,"=1-Apr")
=SUM(IF(F2:F1308="JET",IF(G2:G1308="April 1, 2009",1,0)))

JET actually completed 3 projects on 4/1, but I always get a zero
total. I
tried changing the date format, but that didn't work either.
Any help is appreciated.

Cheers
dblevins





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
Sumif, SumProduct, CountIf Formula Help Jeremy Excel Discussion (Misc queries) 3 April 23rd 08 05:18 PM
COUNTIF? SUMIF? SUMPRODUCT? IF? omss Excel Worksheet Functions 2 February 5th 08 11:22 PM
sumif, countif, sumproduct????? m fleming Excel Worksheet Functions 2 June 17th 06 03:11 AM
Sumproduct, If, Sumif, Countif, Match?? Herman56 Excel Discussion (Misc queries) 0 March 30th 06 01:40 PM
countif, sumif, sumproduct - I dont know which to use Jim Excel Worksheet Functions 3 January 4th 06 01:51 PM


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