ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Change General Format to Currency Format (https://www.excelbanter.com/excel-worksheet-functions/34367-change-general-format-currency-format.html)

Freshman

Change General Format to Currency Format
 
Dear all,

I downloaded a file from an external program in Excel format. The file
contains 6 columns with the prices at the last column. I tried to sum up the
last column but found that the figures together with other text are in
"General" format - e.g. "$450.00HKD". As such, I cannot do any calculations.
Since the last column has 600+ rows and I don't want to change the cell
format one by one. Would any experts tell me how to change the cell value to
"$450.00" in currency format?

Thanks.

ScottO

If I understand you correctly, the data may have imported as text, including
the HKD suffix.
If so, Select your last column and use Edit/Replace to find instances of HKD
and replace with nothing.
Rgds,
ScottO

"Freshman" wrote in message
...
| Dear all,
|
| I downloaded a file from an external program in Excel format. The file
| contains 6 columns with the prices at the last column. I tried to sum up
the
| last column but found that the figures together with other text are in
| "General" format - e.g. "$450.00HKD". As such, I cannot do any
calculations.
| Since the last column has 600+ rows and I don't want to change the cell
| format one by one. Would any experts tell me how to change the cell value
to
| "$450.00" in currency format?
|
| Thanks.



Ashish Mathur

Hi Freshman,

Assuming your data is in cell A12, array enter (Ctrl+Shift+Enter) the
following formula in cell B12

1*MID(A12,MATCH(TRUE,ISNUMBER(1*MID(A12,ROW($1:$18 ),1)),0),COUNT(1*MID(A12,ROW($1:$18),1))+IF(ISNUMB ER(MATCH(".",MID(A12,ROW($1:$18),1),0)),1,0))

This will give you the number only.

Hope this helps

Regards,

Ashish Mathur

"Freshman" wrote:

Dear all,

I downloaded a file from an external program in Excel format. The file
contains 6 columns with the prices at the last column. I tried to sum up the
last column but found that the figures together with other text are in
"General" format - e.g. "$450.00HKD". As such, I cannot do any calculations.
Since the last column has 600+ rows and I don't want to change the cell
format one by one. Would any experts tell me how to change the cell value to
"$450.00" in currency format?

Thanks.


Max

Assuming the last col is col F, data from row1 down, and if the currency
code are all 3 alphas ("HKD", "SGD", etc) at the rightmost end, then this
might suffice:

Put in say, G1: =LEFT(F1,LEN(F1)-3)+0
Format G1 as currency, fill down
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Freshman" wrote in message
...
Dear all,

I downloaded a file from an external program in Excel format. The file
contains 6 columns with the prices at the last column. I tried to sum up

the
last column but found that the figures together with other text are in
"General" format - e.g. "$450.00HKD". As such, I cannot do any

calculations.
Since the last column has 600+ rows and I don't want to change the cell
format one by one. Would any experts tell me how to change the cell value

to
"$450.00" in currency format?

Thanks.





All times are GMT +1. The time now is 06:50 PM.

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