#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default SUMIF or COUNTIF

I am trying to figure out the formula which would count the number of "s" (or
"c" or "d" for that matter) files that are also have a received date equal to
A1 (9-03).

I have tried several formulas - no luck.

Any ideas?


9-03
Open New
C. Camp 1 COUNT((E8:E30)="A1",IF(C8:C30),"S"))
Deletions 18 IF(E8:E30="A1",COUNT(C8:C30="S")"1")
Disputes 1 IF(E8:E30="A1",COUNT(C8:C30="S")" ")

Starts File Type Recv'd
09-12-2009 D 9-03
10-02-2009 D 8-31
10-02-2009 D 8-27
10-14-2009 D 7-28
10-17-2009 D 9-02
11-07-2009 D 7-21
11-27-2009 D 8-17
11-29-2009 D 8-31
12-19-2009 D 8-04
12-19-2009 D 8-04
12-19-2009 D 8-04
01-15-2010 D 7-27
02-21-2010 D 4-21
03-27-2010 D 8-31
04-09-2010 D 8-06
04-25-2010 D 8-24
07-03-2010 D 8-20
05-29-2011 D 8-24
06-01-2010 S 9-03
07-01-2010 C 9-03

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default SUMIF or COUNTIF

If you're using xl2007, look at =sumifs() or =countifs() in excel's help.

If you're using any version, you could use a formula like:

=sumproduct(--(e8:e30=a1),--(c8:c30="S"))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

======
If those values in E8:E30 and A1 are dates (real dates with month, day and
year!) and you wanted to know at the month level (9-03 means all of September of
2003???), you could use a formula like:

=sumproduct(--(text(e8:e30,"yyyymm")=text(a1,"yyyymm")),--(c8:c30="S"))


deletion files wrote:

I am trying to figure out the formula which would count the number of "s" (or
"c" or "d" for that matter) files that are also have a received date equal to
A1 (9-03).

I have tried several formulas - no luck.

Any ideas?

9-03
Open New
C. Camp 1 COUNT((E8:E30)="A1",IF(C8:C30),"S"))
Deletions 18 IF(E8:E30="A1",COUNT(C8:C30="S")"1")
Disputes 1 IF(E8:E30="A1",COUNT(C8:C30="S")" ")

Starts File Type Recv'd
09-12-2009 D 9-03
10-02-2009 D 8-31
10-02-2009 D 8-27
10-14-2009 D 7-28
10-17-2009 D 9-02
11-07-2009 D 7-21
11-27-2009 D 8-17
11-29-2009 D 8-31
12-19-2009 D 8-04
12-19-2009 D 8-04
12-19-2009 D 8-04
01-15-2010 D 7-27
02-21-2010 D 4-21
03-27-2010 D 8-31
04-09-2010 D 8-06
04-25-2010 D 8-24
07-03-2010 D 8-20
05-29-2011 D 8-24
06-01-2010 S 9-03
07-01-2010 C 9-03


--

Dave Peterson
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 And Countif roter789 Excel Worksheet Functions 7 August 21st 09 12:00 AM
sumif? countif? Aaron Hodson \(Coversure\) Excel Worksheet Functions 3 September 3rd 08 04:35 PM
CountIF or SumIF Scott@CW Excel Discussion (Misc queries) 3 December 15th 06 12:54 PM
{} SumIf and CountIf SS Excel Worksheet Functions 5 May 24th 05 09:19 PM
Countif, Sumif, If - help! Angel160 Excel Worksheet Functions 2 November 3rd 04 05:23 PM


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