countif with multiple functions

M

mdcgpw

I have a speadsheet with pultiple worksheets

worksheet Jan has Col F that contain Intitials such as CL and Col C that
contains letter and numbers, such as NCO15 or Uko15.

On worksheet Parts, I have a cell with the initial, and i need a formula
that counts how many times the innitial in that cell appear in Jan column F,
as long as the Jan Col C corresponding data begins with the letter N.

After much research I wrtote this formula:
=SUMPRODUCT((JAN!F:F=Parts!A3)*(JAN!C:C="n*")) However I am still getting
an error.. Can someone see where i am going wrong?
 
M

mdcgpw

Thank you, I tried changing it to the following but it still did not work,
now I am getting a #Value! error, before it a #name

=SUMPRODUCT((JAN!G2:G500=Parts!A3)*LEFT(JAN!C2:C500="N"))
 
J

JLatham

The problem is in the LEFT() portion of your formula, change that to
LEFT(JAN!C2:C500,1="N") and I belive it will work for you.
 
J

JLatham

Oops, I may not have given you the correct change - it should be like
LEFT(B1:B8,1)="N")
 
G

Gary''s Student

Paste this:

=SUMPRODUCT((JAN!G2:G500="xxx")*(LEFT(JAN!C2:C500,1)="N"))

We really need that ,1 in the LEFT() function.
 

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