Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
LEFT returns text; convert text to number with a pair of negation operators;
=--LEFT(A1,3) best wishes -- Bernard V Liengme Microsoft Excel MVP www.stfx.ca/people/bliengme remove caps from email "assaf1978" wrote in message ... 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. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If A1 contains 123abc then=--LEFT(A1,3) gets you the number (as a number)
The double minus sign is a very common trick -- Gary''s Student - gsnu200745 "assaf1978" wrote: 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. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you Bernard & Gary's Student - u've been most helpful!
"assaf1978" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MID function from right to left | Excel Worksheet Functions | |||
How to nest a left function within a sumif function? | Excel Worksheet Functions | |||
Left vs Left$ function | Excel Discussion (Misc queries) | |||
LEFT function | Excel Discussion (Misc queries) | |||
HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION | Excel Worksheet Functions |