#1   Report Post  
tony
 
Posts: n/a
Default £1.5m to 1.5

Hi
I have a worksheet with column c recording values in the format of £1.5m ,
£2m etc but I need to sum this row is this possible ? or easy to convert ?
Thanks in advance Tony


  #2   Report Post  
Roland
 
Posts: n/a
Default £1.5m to 1.5

Tony,
I presume that the £ and m indicate that you are dealing with text data,
not numeric data simply formated to show the £ and m.

If it is text data, and assuming your text, e.g. "£1.2m" is in cell A1,
put this formula in cell B1, or other cell.

=VALUE(LEFT(MID(A1,2,33),LEN(A1)-2))

Copy down to match your data in column A, and then add column B.




"tony" wrote:

Hi
I have a worksheet with column c recording values in the format of £1.5m ,
£2m etc but I need to sum this row is this possible ? or easy to convert ?
Thanks in advance Tony



  #3   Report Post  
JMB
 
Posts: n/a
Default £1.5m to 1.5

This may work. Assuming your data is in cell C1:C100 (change the range
reference as needed):

=SUM(VALUE(MID(C1:C100,SEARCH(CHAR(163),C1:C100,1) +1,SEARCH("m",C1:C100,1)-SEARCH(CHAR(163),C1:C100,1)-1)))

entered with Control+Shift+Enter

"tony" wrote:

Hi
I have a worksheet with column c recording values in the format of £1.5m ,
£2m etc but I need to sum this row is this possible ? or easy to convert ?
Thanks in advance Tony



  #4   Report Post  
Roger Govier
 
Posts: n/a
Default £1.5m to 1.5

Hi Tony

In another column enter
=--SUBSTITUTE(SUBSTITUTE(C1,"£",""),"m","")
Copy down for the range of rows required.
If you want this to be a permanent change, copy the new range and Paste
SpecialValues back over the top of the old range.


Regards

Roger Govier


tony wrote:
Hi
I have a worksheet with column c recording values in the format of £1.5m ,
£2m etc but I need to sum this row is this possible ? or easy to convert ?
Thanks in advance Tony


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



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

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"