Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting rows based on the contents of multiple cells

Hello,

We have a spreadsheet that is layed out something like this:


6 Collumns. Collumn A contains certain features of a software
product.
Collumn C contains X's, as checkmarks (indicating those features are
present). Collumn F contains comments regarding the features in
collumn A.


The table looks something like this:


A C F


feat1 X comment
feat2 comment
feat3 X


What we need to do is count the NUMBER OF ROWS that contain BOTH an X
in collumn C, and a comment in collumn F. I know how to count the
number of Xs and the number of Comments, but I need to be able to
count rows with BOTH. For intance, in my example, the formula would
equal 1, as only the first row has both a comment AND a checkmark.


I've been doing some reading and it seems like the dcounta formula is
what i'm looking for, but I cant seem to make it work.


Any suggestions would be greatly appreciated.


-Bret
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Counting rows based on the contents of multiple cells

Bret wrote:
Hello,

We have a spreadsheet that is layed out something like this:


6 Collumns. Collumn A contains certain features of a software
product.
Collumn C contains X's, as checkmarks (indicating those features are
present). Collumn F contains comments regarding the features in
collumn A.


The table looks something like this:


A C F


feat1 X comment
feat2 comment
feat3 X


What we need to do is count the NUMBER OF ROWS that contain BOTH an X
in collumn C, and a comment in collumn F. I know how to count the
number of Xs and the number of Comments, but I need to be able to
count rows with BOTH. For intance, in my example, the formula would
equal 1, as only the first row has both a comment AND a checkmark.


I've been doing some reading and it seems like the dcounta formula is
what i'm looking for, but I cant seem to make it work.


Any suggestions would be greatly appreciated.


-Bret



See if this helps:

http://www.contextures.com/xlFunctio...tml#SumProduct
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting rows based on the contents of multiple cells

Try this:

count the NUMBER OF ROWS that contain
BOTH an X in collumn C, and a comment in
collumn F.


Assuming column F contains TEXT comments only, no numbers.

=SUMPRODUCT(--(C2:C100="X"),--(F2:F100<""))

--
Biff
Microsoft Excel MVP


"Bret" wrote in message
...
Hello,

We have a spreadsheet that is layed out something like this:


6 Collumns. Collumn A contains certain features of a software
product.
Collumn C contains X's, as checkmarks (indicating those features are
present). Collumn F contains comments regarding the features in
collumn A.


The table looks something like this:


A C F


feat1 X comment
feat2 comment
feat3 X


What we need to do is count the NUMBER OF ROWS that contain BOTH an X
in collumn C, and a comment in collumn F. I know how to count the
number of Xs and the number of Comments, but I need to be able to
count rows with BOTH. For intance, in my example, the formula would
equal 1, as only the first row has both a comment AND a checkmark.


I've been doing some reading and it seems like the dcounta formula is
what i'm looking for, but I cant seem to make it work.


Any suggestions would be greatly appreciated.


-Bret



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
Counting conditional cells in multiple rows RobDuB Excel Worksheet Functions 4 August 29th 07 09:42 PM
Counting rows based on multiple columns Doyle Excel Worksheet Functions 1 September 29th 06 07:06 PM
Counting based on other cells contents... George Excel Discussion (Misc queries) 3 November 8th 05 02:33 PM
Complicated counting of cells (based on other cells contents) George Excel Worksheet Functions 3 November 7th 05 06:39 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


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