countif

A

Andy K

Cells A1: A10 and B1:B10 have a list of components "NUTS" and "BOLTS" I
would like to use countif to total the number of times I see NUTS but only if
bolts can be seen in the same row
A B
1 NUTS BOLTS 1
2 SCREWS BOLTS
3 NUTS WASHERS
4 NUTS WASHERS
5 SCREWS BOLTS
6 SCREWS WASHERS
7 SCREWS WASHERS
8 NUTS WASHERS
9 SCREWS WASHERS
10 NUTS BOLTS 1
Total 2

Thanks in advance
 
S

Stefi

=SUMPRODUCT(--(A2:A11="NUTS"),--(B2:B11="BOLTS"))
Regards,
Stefi

„Andy K†ezt írta:
 
J

Jacob Skaria

=SUMPRODUCT(($A$1:$A$100="Nuts")*($B$1:$B$100="Bolts"))

If this post helps click Yes
 
D

David Biddulph

What do you get from the formulae =A1="NUTS" and =B1="BOLTS" ?
Perhaps you have extra spaces (or other non-printing characters) in the
cells (although your example didn't have)?
What do you get from the formulae =LEN(A1) and =LEN(B1) ?
 

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

MAX then return value? 10
Pivot Query 1
Pivot query 0
sumproduct function 5
Sumproduct help needed. 5
Conditional total 2
Calculation Total Time With Dates/Times That Overlaps 4
Counting 2

Top