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

I am extracting part of a string using Mid() and I need to convert this to
number format. Any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default convert string to number

Try one of these to convert the result of the MID function to a numeric
number.

=--MID(........)

=MID(........)+0

--
Biff
Microsoft Excel MVP


"Jeff Klein" <jklein@nospam wrote in message
...
I am extracting part of a string using Mid() and I need to convert this to
number format. Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default convert string to number

Hi Jeff,

=VALUE(YourMidFormula)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jeff Klein" <jklein@nospam wrote in message ...
|I am extracting part of a string using Mid() and I need to convert this to
| number format. Any ideas?
|
|


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default convert string to number

=--MID(...)

will work as long as you parse out a number with the MID function


--


Regards,


Peo Sjoblom


"Jeff Klein" <jklein@nospam wrote in message
...
I am extracting part of a string using Mid() and I need to convert this to
number format. Any ideas?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default convert string to number

Just multiply it by 1 (or add zero) as part of your formula:

=1*MID(A1,3,2)

Hope this helps.

Pete

On Nov 1, 9:44 pm, "Jeff Klein" <jklein@nospam wrote:
I am extracting part of a string using Mid() and I need to convert this to
number format. Any ideas?



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 a text string to a number kevcar40 Excel Discussion (Misc queries) 7 July 4th 07 03:58 PM
Convert a number to a name string Numbers to name string Excel Worksheet Functions 2 June 23rd 06 04:52 PM
convert weekday string to number nico Excel Discussion (Misc queries) 3 June 12th 05 05:45 PM
How to COnvert text string to number timtak Excel Discussion (Misc queries) 3 June 4th 05 04:57 AM
convert string to number Christina Excel Worksheet Functions 3 November 16th 04 02:36 PM


All times are GMT +1. The time now is 12:42 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"