Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to convert a text in a number value

I would like to know what can i do to convert a Text in a number I want. What
is the formula for this?, cause I can't find it. For Example:

Convert "VA-30" in the number "30", and that everytime I write that text, in
the cell beside appears 30
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default How to convert a text in a number value

IF the number is always the right two digits, you could use this formula in
column B to modify column A where you type

=RIGHT(A1,2)*1

--
Best Regards,

Luke M


"FABIOZ28" wrote:

I would like to know what can i do to convert a Text in a number I want. What
is the formula for this?, cause I can't find it. For Example:

Convert "VA-30" in the number "30", and that everytime I write that text, in
the cell beside appears 30

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default How to convert a text in a number value

On Thu, 6 Dec 2007 11:04:03 -0800, FABIOZ28
wrote:

I would like to know what can i do to convert a Text in a number I want. What
is the formula for this?, cause I can't find it. For Example:

Convert "VA-30" in the number "30", and that everytime I write that text, in
the cell beside appears 30


If the "number" is always the last two characters of the string:

=--right(a1,2)

A more general solution:

=--MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"012345 6789")),255)




--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default How to convert a text in a number value

If the number you are seeking always follows a dash, then no matter how many
digits it contains, this should work.

=MID(A1,FIND("-",A1,1)+1,99)

Vaya con Dios,
Chuck, CABGx3




"FABIOZ28" wrote:

I would like to know what can i do to convert a Text in a number I want. What
is the formula for this?, cause I can't find it. For Example:

Convert "VA-30" in the number "30", and that everytime I write that text, in
the cell beside appears 30

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert text number to number formate [email protected] Excel Discussion (Misc queries) 2 April 9th 07 10:48 AM
Convert text to number Donna S Excel Discussion (Misc queries) 9 October 26th 06 09:17 PM
how to convert a number to text CQ New Users to Excel 3 February 17th 06 05:05 PM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
not able to convert text, or graphic number to regular number in e knutsenk Excel Worksheet Functions 1 April 2nd 05 08:41 AM


All times are GMT +1. The time now is 08:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"