![]() |
countif with multiple functions
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? |
countif with multiple functions
A couple of things:
1. Don't use the full columns; use something like A1:A1000 and C1:C1000 3. Avoid the wildcard here; incorporate something like LEFT(A1:A1000,1)="N" Don't give up on SUMPRODUCT(). It is the best approach. See: http://www.xldynamic.com/source/xld.SUMPRODUCT.html -- Gary''s Student - gsnu200843 "mdcgpw" wrote: 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? |
countif with multiple functions
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:C50 0="N")) "Gary''s Student" wrote: A couple of things: 1. Don't use the full columns; use something like A1:A1000 and C1:C1000 3. Avoid the wildcard here; incorporate something like LEFT(A1:A1000,1)="N" Don't give up on SUMPRODUCT(). It is the best approach. See: http://www.xldynamic.com/source/xld.SUMPRODUCT.html -- Gary''s Student - gsnu200843 "mdcgpw" wrote: 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? |
countif with multiple functions
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. "mdcgpw" wrote: 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:C50 0="N")) "Gary''s Student" wrote: A couple of things: 1. Don't use the full columns; use something like A1:A1000 and C1:C1000 3. Avoid the wildcard here; incorporate something like LEFT(A1:A1000,1)="N" Don't give up on SUMPRODUCT(). It is the best approach. See: http://www.xldynamic.com/source/xld.SUMPRODUCT.html -- Gary''s Student - gsnu200843 "mdcgpw" wrote: 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? |
countif with multiple functions
Oops, I may not have given you the correct change - it should be like
LEFT(B1:B8,1)="N") "mdcgpw" wrote: 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:C50 0="N")) "Gary''s Student" wrote: A couple of things: 1. Don't use the full columns; use something like A1:A1000 and C1:C1000 3. Avoid the wildcard here; incorporate something like LEFT(A1:A1000,1)="N" Don't give up on SUMPRODUCT(). It is the best approach. See: http://www.xldynamic.com/source/xld.SUMPRODUCT.html -- Gary''s Student - gsnu200843 "mdcgpw" wrote: 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? |
countif with multiple functions
Paste this:
=SUMPRODUCT((JAN!G2:G500="xxx")*(LEFT(JAN!C2:C500, 1)="N")) We really need that ,1 in the LEFT() function. -- Gary''s Student - gsnu200843 "mdcgpw" wrote: 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:C50 0="N")) "Gary''s Student" wrote: A couple of things: 1. Don't use the full columns; use something like A1:A1000 and C1:C1000 3. Avoid the wildcard here; incorporate something like LEFT(A1:A1000,1)="N" Don't give up on SUMPRODUCT(). It is the best approach. See: http://www.xldynamic.com/source/xld.SUMPRODUCT.html -- Gary''s Student - gsnu200843 "mdcgpw" wrote: 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? |
All times are GMT +1. The time now is 09:06 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com