Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMPRODUCT(--(A2:A11="NUTS"),--(B2:B11="BOLTS"))
Regards, Stefi €žAndy K€ť ezt Ă*rta: 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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMPRODUCT(($A$1:$A$100="Nuts")*($B$1:$B$100="Bol ts"))
If this post helps click Yes --------------- Jacob Skaria "Andy K" wrote: 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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Not COUNTIF, but:
=SUMPRODUCT((A1:A10="NUTS")*(B1:B10="BOLTS")) -- David Biddulph "Andy K" wrote in message ... 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 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks this is Just what I'm looking for
"Stefi" wrote: =SUMPRODUCT(--(A2:A11="NUTS"),--(B2:B11="BOLTS")) Regards, Stefi €žAndy K€ť ezt Ă*rta: 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 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Result showing 0 not sure how I'm going wrong
"David Biddulph" wrote: Not COUNTIF, but: =SUMPRODUCT((A1:A10="NUTS")*(B1:B10="BOLTS")) -- David Biddulph "Andy K" wrote in message ... 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 |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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) ? -- David Biddulph "Andy K" wrote in message ... Result showing 0 not sure how I'm going wrong "David Biddulph" wrote: Not COUNTIF, but: =SUMPRODUCT((A1:A10="NUTS")*(B1:B10="BOLTS")) -- David Biddulph "Andy K" wrote in message ... 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 |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You are welcome! Thanks for the feedback!
Stefi €žAndy K€ť ezt Ă*rta: Thanks this is Just what I'm looking for "Stefi" wrote: =SUMPRODUCT(--(A2:A11="NUTS"),--(B2:B11="BOLTS")) Regards, Stefi €žAndy K€ť ezt Ă*rta: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
COUNTIF help | Excel Worksheet Functions | |||
COUNTIF in one colum then COUNTIF in another...??? | Excel Worksheet Functions |