How to Replace & Insert Characters (Substitute Costum Format)

hunter204

New Member
Joined
Aug 22, 2011
Messages
12
Good Day To All:

I have a problem regarding on how to substitute the Cell.

First I also want to to know how Insert using Replace Function or any Function as long as it will be inserted.

Second is I want to Substitute my Cell A1 containing "91625" but the costum format is "##-##-##" so what I wanted is the result will be 9º 16.25`N.


I tried this formula given to me to substitute the TEXT but the problem is it is only valid if the format use is the TEXT.
9-16-25
=TEXT(SUBSTITUTE(SUBSTITUTE(E35,"-",":",1),"-","."),"[m]º s.00")&"`N"
Result: 9º 16.25`N

I'm using a Custom Format
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
A custom format doesn't actually put the hyphens in the cell, only displays them. If your numbers are always 5 digits with the digits split as outlined in your sample, you can use the following formula
Code:
=CONCATENATE(LEFT(A1,1),"º ",MID(A1,2,2),".",RIGHT(A1,2),"'N")
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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