![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: OKC
Posts: 98
|
I import data into a CSV file then convert it to excel xls. One column of data has a comma in the number like this 19,456 which actually that is supposed to be 194.56 (yes the mainframe is screwed up and sends the data with the comma in the wrong position.) Anyhow, I have to convert this to a currency figure so using the following:
=left(b2,3)&"."&right(b2,2) I get 194.56 then I copy and paste values over it to get rid of the formula, but then i cannot get the $ formatting to work. How do I get the currency or accounting or dollar formatting to work on the resulting cell? Eddie G. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi Eddie.
Give this a try... =TEXT(LEFT(B2,3)&"."&RIGHT(B2,2),"$#,##0.00_);($#,##0.00)") Tom |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: OKC
Posts: 98
|
thanks to both responses....both ways work great.
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
Make the conversion a VALUE by a) copy a blank cell select cell with converted text Edit Paste Special Add b) use Value =VALUE(LEFT(B2,3)&"."&RIGHT(B2,2)) With either of the above, format as Currency |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|