#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default countifs/or

I have the following formula in a spreadsheet:
=COUNTIFS(A:A,"<",C:C,"",D:D,"Received")
I now want to also count rows in column D that have "n/a" (I want to count
both "n/a" and "received".
How do I modify the function to include those?
Thank you,
Caroline
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default countifs/or

you should be able to stack them try:
=COUNTIFS(A:A,"<",C:C,"",D:D,"Received")+COUNTIFS (A:A,"<",C:C,"",D:D,"n/a")

"Caroline" wrote:

I have the following formula in a spreadsheet:
=COUNTIFS(A:A,"<",C:C,"",D:D,"Received")
I now want to also count rows in column D that have "n/a" (I want to count
both "n/a" and "received".
How do I modify the function to include those?
Thank you,
Caroline

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default countifs/or


Think you need to revert to a Sumproduct function:

=Sumproduct(--(A:A<""),--(C:C=""),((D:D="Received")+(D:D="n/a")))


--
NBVC

Where there is a will there are many ways.

'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=123188

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default countifs/or

=SUM(COUNTIFS(A:A,"<",C:C,"",D:D,{"Received","n/a"}))


"Caroline" wrote:

I have the following formula in a spreadsheet:
=COUNTIFS(A:A,"<",C:C,"",D:D,"Received")
I now want to also count rows in column D that have "n/a" (I want to count
both "n/a" and "received".
How do I modify the function to include those?
Thank you,
Caroline

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
Countifs Carl Excel Worksheet Functions 1 April 22nd 09 04:28 PM
Countifs CD27 Excel Worksheet Functions 2 April 21st 09 06:36 PM
CountIfs vreeckes Excel Worksheet Functions 4 February 19th 09 02:57 AM
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr Steve Excel Worksheet Functions 2 January 4th 09 05:36 PM
countifs Forza MIlan Excel Discussion (Misc queries) 2 July 4th 07 09:48 AM


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