How to use trim finction in array

G

Guest

Hi I have using array formula
=COUNT(IF(('sheet1'!$C$4:$C$200="corporate")*('sheet1'!$L$4:$L$200="ip"),'sheet1'!$Q$4:$Q$200))
I want to trim all extra spaces in column c.
Please advise how to use trim function.
Thanks
 
G

Guest

=COUNT(IF((TRIM(Sheet1!$C$4:$C$200)="corporate")*(Sheet1!$L$4:$L$200="ip"),Sheet1!$Q$4:$Q$200))
 
G

Guest

=SUMPRODUCT(ISNUMBER(SEARCH("corporate",'sheet1'!$C$4:$C$200))*('sheet1'!$L$4:$L$200="ip"))
 
J

JE McGimpsey

Probably need to add a term to count only numbers in column Q:

=SUMPRODUCT(--ISNUMBER(SEARCH("corporate",Sheet1!$C$4:$C$200)),
--(Sheet1!$L$4:$L$200="ip"), --ISNUMBER(Sheet1!$Q$4:$Q$200))
 

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

Similar Threads


Top