Use find a replace to move a character in a cell?

MarcDenney

New Member
Joined
Jun 15, 2011
Messages
43
Afternoon all,

I have data that comes off the system with the minus sign at the end, eg 100-.

Is there any way of using find and replace to move the minus sign to the start of the number?

Thanks in advance

Marc
 

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.
Assuming your data is in column A, you could put this formula in column B and copy it down as far as needed:

=SUBSTITUTE(A1,"-","")
 
Upvote 0
Assuming your data is in column A, you could put this formula in column B and copy it down as far as needed:

=SUBSTITUTE(A1,"-","")

Thanks, but thats just the same as a normal find and replace.

I'm looking to move the minus symbol to the start of the number.

Thanks for your help.
 
Upvote 0
Hi Marc

You can use the Text to Columns feature.

Select the column, invoke Text to Columns and in the third panel, click on the Advanced button. You are taken to the Advanced Text Import Settings where you can check the option "Trailing minus for negative numbers".
 
Upvote 0
Hi Marc

You can use the Text to Columns feature.

Select the column, invoke Text to Columns and in the third panel, click on the Advanced button. You are taken to the Advanced Text Import Settings where you can check the option "Trailing minus for negative numbers".

That's perfect!

Thanks
 
Upvote 0
Thanks, but thats just the same as a normal find and replace.

I'm looking to move the minus symbol to the start of the number.

My bad for not reading your whole post. Formula could then be amendd as follows:

="-"&SUBSTITUTE(A1,"-","")
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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