Double count

  • Thread starter Thread starter Byron720
  • Start date Start date
B

Byron720

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:D12>1))
but it doesn't work.
 
Your formula works for me. Are you sure that the *numbers* are real nunbers
and not text?

Try:

=ISTEXT(D2) and copy down to see what you get.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
Use a pivot table with w,c on rows and 1,2 on columns and in data
value
Post that you can select w on row side and unselect 1 on column side
to get the exact count
Regards
Anirudh
 
Use lowercase w

To an XL formula W and w are equal. ="W"="w" returns TRUE

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
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
 

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

Back
Top