Double count

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.
 
S

Sandy Mann

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
 
A

Ag

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
 
S

Sandy Mann

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
 

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

Top