ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to use trim finction in array (https://www.excelbanter.com/excel-worksheet-functions/137174-how-use-trim-finction-array.html)

UB

How to use trim finction in array
 
Hi I have using array formula
=COUNT(IF(('sheet1'!$C$4:$C$200="corporate")*('she et1'!$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

Toppers

How to use trim finction in array
 
=COUNT(IF((TRIM(Sheet1!$C$4:$C$200)="corporate")*( Sheet1!$L$4:$L$200="ip"),Sheet1!$Q$4:$Q$200))

"ub" wrote:

Hi I have using array formula
=COUNT(IF(('sheet1'!$C$4:$C$200="corporate")*('she et1'!$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


Teethless mama

How to use trim finction in array
 
=SUMPRODUCT(ISNUMBER(SEARCH("corporate",'sheet1'!$ C$4:$C$200))*('sheet1'!$L$4:$L$200="ip"))


"ub" wrote:

Hi I have using array formula
=COUNT(IF(('sheet1'!$C$4:$C$200="corporate")*('she et1'!$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


JE McGimpsey

How to use trim finction in array
 
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))

In article ,
Teethless mama wrote:

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


"ub" wrote:

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



All times are GMT +1. The time now is 09:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com