count 2 criteria text or numbers

  • Thread starter Thread starter BNT1 via OfficeKB.com
  • Start date Start date
B

BNT1 via OfficeKB.com

Hi

Have looked on treads and have got the following which works great

=sumproduct(--(A1:a10="test"),--(b1:b10="test1"))

But when I substitute the real requirement from the file, GA01 and 105
respectively, I get 0.

The file is a .CSV, what ever that is, which is generated from a VTMS- AS400.

Does anyone know a way around this problem?

Regards

Brian
 
Are you putting the 105 inside the quotes of test1 ?

If you have numbers in column B of your file, then you should not use
quotes.

Hope this helps.

Pete
 
Pete

Thats brilliant, the quotation marks were the sticking point, all working
fine
by the way, not sure if this should this be entered Ctl+Shift+Enter? it
working ok

thanks again

Pete_UK said:
Are you putting the 105 inside the quotes of test1 ?

If you have numbers in column B of your file, then you should not use
quotes.

Hope this helps.

Pete
[quoted text clipped - 15 lines]
 
Glad to hear that it worked - thanks for feeding back.

Although SUMPRODUCT acts upon arrays, it does not (generally) need to
be committed with CTRL-SHIFT-ENTER.

Pete

Pete

Thats brilliant, the quotation marks were the sticking point, all working
fine
by the way, not sure if this should this be entered Ctl+Shift+Enter? it
working ok

thanks again

Pete_UK said:
Are you putting the 105 inside the quotes of test1 ?
If you have numbers in column B of your file, then you should not use
quotes.
Hope this helps.

[quoted text clipped - 15 lines]
 

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