The LEFT Function

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

Guest

Hi,
Why can't I treat the result of the LEFT function as a number (if taken from
a string of numbers) and not as a string?
I tried format cells but to no avail.

Thanks,
Assaf.
 
LEFT returns text; convert text to number with a pair of negation operators;
=--LEFT(A1,3)
best wishes
 
If A1 contains 123abc then=--LEFT(A1,3) gets you the number (as a number)

The double minus sign is a very common trick
 

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

Similar Threads

sum visible 1
diagonal line 1
copy colour 3
new book at startup 1
Ignore blank celss in left function 2
Keep pivot format 1
Open Pivot Data 1
Error Message 2

Back
Top