ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   trim function (https://www.excelbanter.com/excel-worksheet-functions/62392-trim-function.html)

[email protected]

trim function
 
i am using a formula

in c1
if(a1="a","***","")

sometimes the formula fails in subsequent rows
i suspect that there is a blank space following the "a"

how would one incorporate the trim function within the if statement
or do you have to use a helper column to trim and then evaluate the
trimmed result

thanks


Govind

trim function
 
Hi,

Use

=if(trim(a1)="a","***","")

Regards

Govind.


wrote:

i am using a formula

in c1
if(a1="a","***","")

sometimes the formula fails in subsequent rows
i suspect that there is a blank space following the "a"

how would one incorporate the trim function within the if statement
or do you have to use a helper column to trim and then evaluate the
trimmed result

thanks


bpeltzer

trim function
 
if(trim(a1)="a","***",""). --Bruce

" wrote:

i am using a formula

in c1
if(a1="a","***","")

sometimes the formula fails in subsequent rows
i suspect that there is a blank space following the "a"

how would one incorporate the trim function within the if statement
or do you have to use a helper column to trim and then evaluate the
trimmed result

thanks



[email protected]

trim function
 
On Thu, 29 Dec 2005 21:19:49 -0500, wrote:

thank you
just couldn't get it through my hard head that it was easier than i
was making it

thanks again


Hi,


Use


=if(trim(a1)="a","***","")


Regards


Govind.


i am using a formula

in c1
if(a1="a","***","")

sometimes the formula fails in subsequent rows
i suspect that there is a blank space following the "a"

how would one incorporate the trim function within the if statement
or do you have to use a helper column to trim and then evaluate the
trimmed result

thanks



All times are GMT +1. The time now is 07:52 PM.

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