ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   CONVERT TEXT 2 NUMBERS (https://www.excelbanter.com/excel-discussion-misc-queries/206224-convert-text-2-numbers.html)

FARAZ QURESHI

CONVERT TEXT 2 NUMBERS
 
I have used quite some scheme of formulas like left(), right() to extract the
"numbers" from a list of codes but they turn out to be in text form. Any idea
how to use some sort of =Text() like function so as to convert the extracted
figures to numbers?

--
Best Regards,
FARAZ A. QURESHI

John C[_2_]

CONVERT TEXT 2 NUMBERS
 
=--(LEFT(A1,2))

Hope this helps.
--
John C


"FARAZ QURESHI" wrote:

I have used quite some scheme of formulas like left(), right() to extract the
"numbers" from a list of codes but they turn out to be in text form. Any idea
how to use some sort of =Text() like function so as to convert the extracted
figures to numbers?

--
Best Regards,
FARAZ A. QURESHI


Kevin B

CONVERT TEXT 2 NUMBERS
 
Use the =VALUE(TextValue) to convert numbers appearing as text to their
numeric value. The example below converts the test string in A1 to a value:

=VALUE(A1)


--
Kevin Backmann


"FARAZ QURESHI" wrote:

I have used quite some scheme of formulas like left(), right() to extract the
"numbers" from a list of codes but they turn out to be in text form. Any idea
how to use some sort of =Text() like function so as to convert the extracted
figures to numbers?

--
Best Regards,
FARAZ A. QURESHI


Mike H

CONVERT TEXT 2 NUMBERS
 
Hi,

With this in A1
q2q

=Mid(a1,2,1)
extracts the 2 and you can still do arithmatic on it

If you want it to right justify like a number multiply it by 1

=Mid(a1,2,1)*1

Mike


"FARAZ QURESHI" wrote:

I have used quite some scheme of formulas like left(), right() to extract the
"numbers" from a list of codes but they turn out to be in text form. Any idea
how to use some sort of =Text() like function so as to convert the extracted
figures to numbers?

--
Best Regards,
FARAZ A. QURESHI


muddan madhu

CONVERT TEXT 2 NUMBERS
 
use =value(left(text,num_char))


On Oct 14, 4:23*pm, FARAZ QURESHI
wrote:
I have used quite some scheme of formulas like left(), right() to extract the
"numbers" from a list of codes but they turn out to be in text form. Any idea
how to use some sort of =Text() like function so as to convert the extracted
figures to numbers?

--
Best Regards,
FARAZ A. QURESHI



David Biddulph[_2_]

CONVERT TEXT 2 NUMBERS
 
The easy option is to use the double unary minus.

=LEFT(A2) gives text, but =--LEFT(A2) would give a number (providing, of
course, that the text was numerical).
--
David Biddulph

"FARAZ QURESHI" wrote in message
...
I have used quite some scheme of formulas like left(), right() to extract
the
"numbers" from a list of codes but they turn out to be in text form. Any
idea
how to use some sort of =Text() like function so as to convert the
extracted
figures to numbers?

--
Best Regards,
FARAZ A. QURESHI




Pete_UK

CONVERT TEXT 2 NUMBERS
 
Yet another way is to add zero to the text value (as long as it is
purely made up of numbers):

=LEFT(A1,3)+0

Hope this helps.

Pete

On Oct 14, 12:23*pm, FARAZ QURESHI
wrote:
I have used quite some scheme of formulas like left(), right() to extract the
"numbers" from a list of codes but they turn out to be in text form. Any idea
how to use some sort of =Text() like function so as to convert the extracted
figures to numbers?

--
Best Regards,
FARAZ A. QURESHI




All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com