I want to remove text from a number.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to remove text from a number. For example I want to remove "M" from
12,888M. The left or right function doesn't work well becuase the number of
characters before the M is not constant.
 
characters before the M is not constant
Is the text character always one digit?

Try
=LEFT(A1,LEN(A1)-1)
 
One way, use Edit > Replace, Replace What, 'M', Replace With, leave blank,
Regards
 
And if you want it a number:

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

=Left() returns a string.
the rightmost negative coerces it to a number (albeit negative)
the second converts it to positive.
 

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