need help on count entires with conditions

S

sajid

Hi

I have an excel sheet with few columns. one column contain factory names.
the factory name repeats. another column contains the status which can be
either "Approved" or "Rejected". I need to count how many times does a
factory got approved status.


please help on which formula can capture these simultaneous entries.

thanks

Sajid
 
R

RonaldoOneNil

Create a pivot table with the factory name as the row heading, Approved and
Rejected as the column headings and the count of Approved or Rejected as the
value.
 
S

sajid

Hi Ronaldo

thanks for your reply. is there anyway that i could do this from formulars?

thanks

sajid
 
M

Mike H

Hi,

Try this

=SUMPRODUCT((A1:A30=C1)*(B1:B30="Approved"))

Where
Column A = factory names
Column B= Status
C1 = Factory you are trying to count for.

Mike
 
S

sajid

Hi

It gives a NUM# error. may be because both columns have text entries to
compare

any other solution??

thanks

sajid
 
M

Mike H

Hi,

Try as I might I can't make this formula produce a NUM# error and it works
perfectly comparing text in 2 columns. Did you use the formula I gave you or
did you modify it. What precisly do you have in these 2 ranges? post some
sample data.

Mike
 
S

sajid

I tried with the below formula

=SUMPRODUCT(('Clothing TL&T Sample record'!D:D="CKT)*('Clothing TL&T Sample
record'!J:O=""App"))

and it gave me the NUM error
 
M

Mike H

Hi,

You can't use full columns with sumproduct. Is 50000 rows enough? I've also
corrected the Syntax

=SUMPRODUCT(('Clothing TL&T Sample record'!D1:D50000="CKT")*('Clothing TL&T
Sample record'!J1:O50000="App"))

Mike
 
S

sajid

Hi Mike

thank for your continuous reply. In fact i tried
=SUMPRODUCT(('Clothing TL&T Sample record'!D:D5000="CKT")*('Clothing TL&T
Sample record'!J:O5000="App"))


but now it gives a name# error


what can be the issue?

please help

thanks


sajid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sum range if 2 conditions are met 5
vlookup count? 4
Counting text criteria 1
Count with multiple conditions 1
Count based on Conditions 1
Average with Conditions 1
To Count or not to Count 14
Conditional count 2

Top