Thread: Double count
View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
Tyro[_2_] Tyro[_2_] is offline
external usenet poster
 
Posts: 1,091
Default Double count

As a followup, put this formula in E2: =LEN(C2) and drag down through E12.
If you have only 1 character in each cell in C2:C12, the formula will
compute 1 as the answer. 2 if you have character + space, 3 if you have
character + space + space etc.

Tyro


"Tyro" wrote in message
...
You may have spaces after the letters in C2:C12. "w " is not equal to
"w".

Tyro

"Byron720" wrote in message
...
I have the following data:

w 1
w 1
w 2
w 1
w 1
c 3
w 2
c 1
c 1
w 3
c 1

I need a formula that calculates how many of the w's have numbers greater
than 1. I was trying this formula:
sumproduct(--(C2:C12="W"),--(D2:D121))
but it doesn't work.