Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mcobra41
 
Posts: n/a
Default How do you remove a "," at the end of every cell?

For example in one cell i have this
ZEZE MOTTA, WALMOR CHAGAS,
I want to remove the second "," after Walmor Chagas. But I want to keep the
first one. Any suggestions? Thanks for the help :)
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

It's always the last character?

If yes, you can use a helper column

=left(a1,len(a1)-1)
and drag down.


Mcobra41 wrote:

For example in one cell i have this
ZEZE MOTTA, WALMOR CHAGAS,
I want to remove the second "," after Walmor Chagas. But I want to keep the
first one. Any suggestions? Thanks for the help :)


--

Dave Peterson
  #3   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

Mcobra41 wrote:
For example in one cell i have this
ZEZE MOTTA, WALMOR CHAGAS,
I want to remove the second "," after Walmor Chagas. But I want to keep the
first one. Any suggestions? Thanks for the help :)


There's always the brute force approach:

[ ] = IF(RIGHT(A1)=",",LEFT(A1,LEN(A1)-1),A1)

or if you *know* that it ends with a comma, then don't use the IF:

[ ] = LEFT(A1,LEN(A1)-1)

Bill
  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(RIGHT(A1,1)=",",LEFT(A1,LEN(A1)-1),A1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mcobra41" wrote in message
...
For example in one cell i have this
ZEZE MOTTA, WALMOR CHAGAS,
I want to remove the second "," after Walmor Chagas. But I want to keep

the
first one. Any suggestions? Thanks for the help :)



  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default


"Bill Martin -- (Remove NOSPAM from address)"
wrote in message ...
Mcobra41 wrote:

There's always the brute force approach:

[ ] = IF(RIGHT(A1)=",",LEFT(A1,LEN(A1)-1),A1)


That's not brute force, that's full error-handling (I subscribe to that
philosophy myself :-))


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
remove bold from cell ref headers Angiew Excel Discussion (Misc queries) 1 January 22nd 05 01:09 AM
How can I remove a formula from a cell and still have the value? Lannutslp Excel Worksheet Functions 1 January 14th 05 05:13 PM
Remove the apostrophe (') in Excel cell text values Connull Excel Discussion (Misc queries) 5 January 11th 05 05:06 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:56 PM.

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

About Us

"It's about Microsoft Excel"