ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Extract number value from a String. 4'6'' to 4.5 (https://www.excelbanter.com/excel-worksheet-functions/451263-extract-number-value-string-46-4-5-a.html)

[email protected]

Extract number value from a String. 4'6'' to 4.5
 
Hello

I wanted to know if I could extract the number values from a Strins.
For Eg:- 4'6'' must be taken as 4.5
10'11'' must be taken as 10.92
Like the feet number as it is, but the number in
Inch to be divided by 12.
Can anyone help me out.

Claus Busch

Extract number value from a String. 4'6'' to 4.5
 
Hi,

Am Sat, 16 Jan 2016 21:42:09 -0800 (PST) schrieb
:

For Eg:- 4'6'' must be taken as 4.5
10'11'' must be taken as 10.92
Like the feet number as it is, but the number in
Inch to be divided by 12.


your string in A1. Try:

=LEFT(A1,FIND("'",A1)-1)+SUBSTITUTE(MID(A1,FIND("'",A1)+1,99),"''",)/12

Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional

[email protected]

Extract number value from a String. 4'6'' to 4.5
 
Thanks a lot dude. It's working properly.


All times are GMT +1. The time now is 09:55 AM.

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