HOW TO CONVERT 2ND COMMA IN A DOLLAR AMOUNT TO A DECIMAL

JuicyMusic

Board Regular
Joined
Jun 13, 2020
Messages
210
Office Version
  1. 365
Platform
  1. Windows
How do I convert the second comma into a decimal point with a formula? There is a 2nd comma in my export due to something that can't be resolved, so has to be corrected manually.

Note: Export has 92 rows with good dollar values......19 rows of the 92 have this issue.

1. Can't do a find/replace because the file is filtered.
2. Can't do find/replace because there are amounts that need to keep the 1st comma......Such as $1,555.00.....my export comes across as $1,555,00.

Here is a sample of the export data:....sometimes the decimal is a : example for this is the first row below.
15:88
174,18
5,75
1,000,00
236,11
339,44
1,023,62
 
Last edited by a moderator:

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try something like this:
Excel Formula:
 =--(LEFT(A1,LEN(A1)-3)&"."&RIGHT(A1,2))
 
Upvote 0
To get numeric values, try
Excel Formula:
=SUBSTITUTE(A2,",","")/100
To get text values, try
Excel Formula:
=TEXT(SUBSTITUTE(A2,",","")/100,"$#,##0.00")
 
Upvote 0
See if the following updated formula works for you:
Excel Formula:
=IFERROR(--A2,SUBSTITUTE(A2,",","")/100)
 
Upvote 0
See if the following updated formula works for you:
Excel Formula:
=IFERROR(--A2,SUBSTITUTE(A2,",","")/100)
@Tetra201
That doesn't work for the OP's first example (15:88)
sometimes the decimal is a : example for this is the first row below.


I came up with these much longer possibilities depending on whether a numerical value is required (col B) or text value (col C)

23 07 04.xlsm
ABC
115:8815.88$15.88
2174,18174.18$174.18
35,755.75$5.75
41,000,001000$1,000.00
5236,11236.11$236.11
6339,44339.44$339.44
71,023,621023.62$1,023.62
8150150$150.00
9328.75328.75$328.75
10$1,555,001555$1,555.00
1155$5.00
Convert
Cell Formulas
RangeFormula
B1:B11B1=LET(t,SUBSTITUTE("00"&A1,"$",""),p,LEN(t)-2,c,MID(t,p,1),--SUBSTITUTE(LEFT(t,p-1)&IF(OR(c={":",","}),".",c)&RIGHT(t,2),",",""))
C1:C11C1=LET(t,SUBSTITUTE("00"&A1,"$",""),p,LEN(t)-2,c,MID(t,p,1),TEXT(SUBSTITUTE(LEFT(t,p-1)&IF(OR(c={":",","}),".",c)&RIGHT(t,2),",",""),"$#,##0.00"))
 
Upvote 0
Oops, I have totally missed the colon remark :oops: -- thank you Peter for catching this.

Here is a remedy:
Excel Formula:
=IFERROR(--SUBSTITUTE(A1,":","."),SUBSTITUTE(A1,",","")/100)
 
Upvote 1

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top