S
su chen
does anybody know how to separate a cell like 128b into
number (128) and text (b)?
Thanks!
number (128) and text (b)?
Thanks!
-----Original Message-----
Hi Dennis!
The double negative forces what would otherwise be a text number to be
a number.
In the example:
=LEFT(A1,LEN(A1)-1)
Returns the number but as text.
We could use:
=VALUE(LEFT(A1,LEN(A1)-1))
That would convert the text number to a number
The double number has the same effect as multiplying by - 1 twice.
It's more efficient than making the additional function call but in
this case I think that the better approach might have been to use
VALUE. I think that with modern processor speeds we too often get hung
up about efficiency. With a large workbook with lots of calculations
involving arrays and iteration, it's different.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
.