Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
UB UB is offline
external usenet poster
 
Posts: 120
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Trim Steved Excel Worksheet Functions 7 August 1st 06 05:43 AM
putting in a sum finction Hru48 Excel Discussion (Misc queries) 5 January 6th 06 12:42 PM
Trim Again ferdy New Users to Excel 5 May 12th 05 02:50 PM
trim ferdy New Users to Excel 4 May 11th 05 11:10 AM


All times are GMT +1. The time now is 01:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"