#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Count If

I need to know how to count a row if it meets conditional criteria. If Cell
A1 = "X" then count A1:A4

Here is an example of what the spreadsheet would look like.

DDA SAV Card MMA Total
X X X 3

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Count If

=IF(a1="x",COUNTA(a1:a4),"")

--
Don Guillett
SalesAid Software

"Carter68" wrote in message
...
I need to know how to count a row if it meets conditional criteria. If
Cell
A1 = "X" then count A1:A4

Here is an example of what the spreadsheet would look like.

DDA SAV Card MMA Total
X X X 3



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Count If

=IF(A1="X",COUNT(A1:A4),"")
--
Brevity is the soul of wit.


"Carter68" wrote:

I need to know how to count a row if it meets conditional criteria. If Cell
A1 = "X" then count A1:A4

Here is an example of what the spreadsheet would look like.

DDA SAV Card MMA Total
X X X 3

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Count If

A is not a row, it is a column.

Assuming you want to count A1:D1 in E1 enter this

=IF(A1="x",COUNTA(A1:D1),"A1 not x")

If you really mean A1:A4 then enter this in A5

=IF(A1="x",COUNTA(A1:A4),"A1 not x")


Gord Dibben MS Excel MVP


On Wed, 24 Jan 2007 10:51:03 -0800, Carter68
wrote:

I need to know how to count a row if it meets conditional criteria. If Cell
A1 = "X" then count A1:A4

Here is an example of what the spreadsheet would look like.

DDA SAV Card MMA Total
X X X 3


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
Removing beginning minus sign from telephone numbers Henrik Johnson Excel Discussion (Misc queries) 6 January 11th 07 03:28 PM
Need formula to count spinoffs jamescarvin Excel Worksheet Functions 1 July 14th 06 04:07 PM
Subtotals by count PineRest Excel Discussion (Misc queries) 1 May 10th 06 05:09 PM
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM


All times are GMT +1. The time now is 06:54 AM.

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"