how to left trim a cell......

  • Thread starter Thread starter ZoeLee
  • Start date Start date
Z

ZoeLee

Cell A1="gdhfbb:jksj"
I want Cell B1="gdhfbb", it automatically left trim A1 until it sees the
character ":"
however ":" will appear in different position, how the formula should be?
thanks

ims
 
Hi ZoeLee,

If your text is in A1 cell, try this:

=IF(ISERROR(FIND(":",A1)),A1,LEFT(A1,FIND(":",A1)-1))


HTH
 
all they work, thank you all~




Orlando Magalhães Filho said:
Hi ZoeLee,

If your text is in A1 cell, try this:

=IF(ISERROR(FIND(":",A1)),A1,LEFT(A1,FIND(":",A1)-1))


HTH

---
Orlando Magalhães Filho

(So that you get best and rapid solution and all may benefit from the
discussion, please reply within the newsgroup, not in email)
 
ZoeLee,

Are you pasting values? If so, try selecting the Formulas option.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top