Need to change a character

rwmill9716

Active Member
Joined
May 20, 2006
Messages
493
Office Version
  1. 2013
Platform
  1. Windows
I have copied a table from an online service. It's displayed negative numbers using a different symbol (instead of a conventional minus). For example, the -$432 is not treated as a negative number when I try to add it to $1,467.97 in the first column; hence, the #Value! error. How do I change this to a true negative $432? Note, I formatted the last column as currency.
 

Attachments

  • Image1.jpg
    Image1.jpg
    38.7 KB · Views: 7

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
It looks like it is entered as "Text" (or is being treated as "Text").
You can convert it to a valid number by doing a "Text to Columns" on that column.
Just select that column, go to the Data menu, select "Text to Columns", and click Finish.

This should hopefully convert all those text entries to valid numbers so your mathematical functions will work!
 
Upvote 0
That looks as though it's either an en dash or an em dash. Try
Excel Formula:
=SUBSTITUTE(F2,CHAR(150),"-")+A2
 
Upvote 0
Solution
Thanks, Fluff, your solution worked fine.

Joe4, I tried changing the column as you suggested but that didn't work for some reason
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Joe4, I tried changing the column as you suggested but that didn't work for some reason
As Fluff suggested, maybe it wasn't the normal dash, so that method won't convert it to a number.
That sometimes happen on data that comes from the Web or some other application. You can get all sorts of weird characters.

Glad Fluff's solution works for you.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

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