View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default 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