ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   2 conditions needed to check and count of items based on that (https://www.excelbanter.com/excel-worksheet-functions/141509-2-conditions-needed-check-count-items-based.html)

vijay

2 conditions needed to check and count of items based on that
 
Hi,

I have some 10 rows of data with 5 columns. one column has got data like
'Reports', 'Interface', 'Conversion' and these values might be present in
more than one row. one more column has status = 'Y' or 'N'. I want to get a
count of no of rows with column1='Reports' and column2(status)='Y'.

How can i achieve this? Please help..

I tried using SUMIF, COUNTIF..but did not work..

dq

2 conditions needed to check and count of items based on that
 
Use something like
=SUM(IF($B$2:$B$9="Report",IF($C$2:$C$9="Y",1,0),0 ))
And press Ctrl+Shift+Enter after entering it.

DQ


Teethless mama

2 conditions needed to check and count of items based on that
 
=SUMPRODUCT(-(A2:A10="Reports"),-(B2:B10="y"))


"Vijay" wrote:

Hi,

I have some 10 rows of data with 5 columns. one column has got data like
'Reports', 'Interface', 'Conversion' and these values might be present in
more than one row. one more column has status = 'Y' or 'N'. I want to get a
count of no of rows with column1='Reports' and column2(status)='Y'.

How can i achieve this? Please help..

I tried using SUMIF, COUNTIF..but did not work..



All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com