PC Review
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Discussion
Counting cells
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Discussion
Counting cells
![]() |
Counting cells |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I had this before, but it didn't work weel! I may have not made it clear. Range C5:C29 containes either letter C or letter M. Range D5 29 containes either letter M or letter Fline 5 C F line 6 C M line 7 M M ........... In cell D34 I want to count the number of occurance of the combination of C and M. The array formula =COUNTIF(C5:C29,"C") counts the value of colomn C. What adjustment do I need to do to include the values in colomn D? I tried this: =COUNTIF(C5:C29,"C"), (D5 29,"M")but had an error Khalil |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Try one of these:
=COUNTIF(C5 29,"C")+COUNTIF(C5 29,"M")=SUM(COUNTIF(C5 29,{"C,"M"}))Biff "Adel Handal" <adelbhandal@hotmail.com> wrote in message news:OawW118AHHA.1012@TK2MSFTNGP04.phx.gbl... > Hi, > I had this before, but it didn't work weel! I may have not made it clear. > > Range C5:C29 containes either letter C or letter M. > Range D5 29 containes either letter M or letter F> > line 5 C F > line 6 C M > line 7 M M > .......... > In cell D34 I want to count the number of occurance of the combination of > C and M. > The array formula =COUNTIF(C5:C29,"C") > counts the value of colomn C. > What adjustment do I need to do to include the values in colomn D? > I tried this: =COUNTIF(C5:C29,"C"), (D5 29,"M")> but had an error > > Khalil > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hi,
Non of the worked! They are arrya formulas. The firsr one counted all the M's and C's in both colomns. To be more clear I might refrase it as follows: need to count the number of rows that has C and M in the same line in colomns C and colomn D "Biff" <biffinpitt@comcast.net> wrote in message news:essv6D9AHHA.4864@TK2MSFTNGP04.phx.gbl... > Try one of these: > > =COUNTIF(C5 29,"C")+COUNTIF(C5 29,"M")> > =SUM(COUNTIF(C5 29,{"C,"M"}))> > Biff > > "Adel Handal" <adelbhandal@hotmail.com> wrote in message > news:OawW118AHHA.1012@TK2MSFTNGP04.phx.gbl... >> Hi, >> I had this before, but it didn't work weel! I may have not made it >> clear. >> >> Range C5:C29 containes either letter C or letter M. >> Range D5 29 containes either letter M or letter F>> >> line 5 C F >> line 6 C M >> line 7 M M >> .......... >> In cell D34 I want to count the number of occurance of the combination >> of C and M. >> The array formula =COUNTIF(C5:C29,"C") >> counts the value of colomn C. >> What adjustment do I need to do to include the values in colomn D? >> I tried this: =COUNTIF(C5:C29,"C"), (D5 29,"M")>> but had an error >> >> Khalil >> >> > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
=sumproduct((c5:c29="c")*(d5:d29="m"))
"Adel Handal" <adelbhandal@hotmail.com> ¼¶¼g©ó¶l¥ó·s»D:eFJAXT9AHHA.1196@TK2MSFTNGP03.phx.gbl... > Hi, > Non of the worked! > They are arrya formulas. > The firsr one counted all the M's and C's in both colomns. > To be more clear I might refrase it as follows: > need to count the number of rows that has C and M in the same line in > colomns C and colomn D > > > "Biff" <biffinpitt@comcast.net> wrote in message > news:essv6D9AHHA.4864@TK2MSFTNGP04.phx.gbl... >> Try one of these: >> >> =COUNTIF(C5 29,"C")+COUNTIF(C5 29,"M")>> >> =SUM(COUNTIF(C5 29,{"C,"M"}))>> >> Biff >> >> "Adel Handal" <adelbhandal@hotmail.com> wrote in message >> news:OawW118AHHA.1012@TK2MSFTNGP04.phx.gbl... >>> Hi, >>> I had this before, but it didn't work weel! I may have not made it >>> clear. >>> >>> Range C5:C29 containes either letter C or letter M. >>> Range D5 29 containes either letter M or letter F>>> >>> line 5 C F >>> line 6 C M >>> line 7 M M >>> .......... >>> In cell D34 I want to count the number of occurance of the combination >>> of C and M. >>> The array formula =COUNTIF(C5:C29,"C") >>> counts the value of colomn C. >>> What adjustment do I need to do to include the values in colomn D? >>> I tried this: =COUNTIF(C5:C29,"C"), (D5 29,"M")>>> but had an error >>> >>> Khalil >>> >>> >> >> > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Hi,
thanks a lot . it worked fine. "bobocat" <bobo.catgod@gmail.com> wrote in message news:utTjvd9AHHA.3620@TK2MSFTNGP02.phx.gbl... > =sumproduct((c5:c29="c")*(d5:d29="m")) > > "Adel Handal" <adelbhandal@hotmail.com> > ¼¶¼g©ó¶l¥ó·s»D:eFJAXT9AHHA.1196@TK2MSFTNGP03.phx.gbl... >> Hi, >> Non of the worked! >> They are arrya formulas. >> The firsr one counted all the M's and C's in both colomns. >> To be more clear I might refrase it as follows: >> need to count the number of rows that has C and M in the same line in >> colomns C and colomn D >> >> >> "Biff" <biffinpitt@comcast.net> wrote in message >> news:essv6D9AHHA.4864@TK2MSFTNGP04.phx.gbl... >>> Try one of these: >>> >>> =COUNTIF(C5 29,"C")+COUNTIF(C5 29,"M")>>> >>> =SUM(COUNTIF(C5 29,{"C,"M"}))>>> >>> Biff >>> >>> "Adel Handal" <adelbhandal@hotmail.com> wrote in message >>> news:OawW118AHHA.1012@TK2MSFTNGP04.phx.gbl... >>>> Hi, >>>> I had this before, but it didn't work weel! I may have not made it >>>> clear. >>>> >>>> Range C5:C29 containes either letter C or letter M. >>>> Range D5 29 containes either letter M or letter F>>>> >>>> line 5 C F >>>> line 6 C M >>>> line 7 M M >>>> .......... >>>> In cell D34 I want to count the number of occurance of the combination >>>> of C and M. >>>> The array formula =COUNTIF(C5:C29,"C") >>>> counts the value of colomn C. >>>> What adjustment do I need to do to include the values in colomn D? >>>> I tried this: =COUNTIF(C5:C29,"C"), (D5 29,"M")>>>> but had an error >>>> >>>> Khalil >>>> >>>> >>> >>> >> >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 
29 containes either letter M or letter F
