Converting a number with a trailing minus sign

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,601
Office Version
  1. 2021
Platform
  1. Windows
I have the folowing number 1235.75- and want to convert this into a number value to appear as (1,235.75)

I have used the folllowing formula

=TEXT(VALUE(RIGHT(A23,1)&LEFT(A23,FIND("-",A23)-(1))),"(#,##0.00)")

The results in -(1,235.75)

It would be appreciated if someone can amend my formula so as to give me (1,235.75)
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try

=TEXT(ABS(VALUE(RIGHT(A23,1)&LEFT(A23,FIND("-",A23)-1))),"(#,##0.00)")
 
Upvote 0
Not tested but this also comes to mind (converting it to a real number - then apply the usual number formatting):

=IF(ISNUMBER(A1),VALUE(A1),-VALUE(Left(A1,Len(A1)-1)))
 
Upvote 0
You can also use Data - Text to columns.
On 3rd screen, click Advanced, and make sure there is a check on
Trailing minus for negative numbers
 
Upvote 0
I have the folowing number 1235.75- and want to convert this into a number value to appear as (1,235.75)

I have used the folllowing formula

=TEXT(VALUE(RIGHT(A23,1)&LEFT(A23,FIND("-",A23)-(1))),"(#,##0.00)")

The results in -(1,235.75)

It would be appreciated if someone can amend my formula so as to give me (1,235.75)
You can do this without using a formula (maybe!).

Select the range of cells in question
Goto Data>Text to Columns
Click Finish

Format the cells as desired
 
Upvote 0
Hi Guys

Thanks for all the input, much appreciated
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,716
Members
452,939
Latest member
WCrawford

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