ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do i replace ( with / without changing format to fraction (https://www.excelbanter.com/excel-worksheet-functions/41378-how-do-i-replace-without-changing-format-fraction.html)

Splt Window Diner

how do i replace ( with / without changing format to fraction
 
I have a text field with a '('.
ex: 125 108(130

I want to replace the '(' with a '/' without changing the format of the
field to a fraction so my result would be '125 108/130' instead of changing
it to
'125.8307692'

Would appreciate any help you could give me.


Flintstone


Try this:

=SUBSTITUTE(A1,"(","/")

Matt


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=397372


Tom Hayakawa

Here's one way:

If A1= 125 108(130
In A2 you would have:
=CONCATENATE(LEFT(A1,FIND("(",A1,1)-1),"/",RIGHT(A1,LEN(A1)-FIND("(",A1,1)))


"Splt Window Diner" wrote:

I have a text field with a '('.
ex: 125 108(130

I want to replace the '(' with a '/' without changing the format of the
field to a fraction so my result would be '125 108/130' instead of changing
it to
'125.8307692'

Would appreciate any help you could give me.



All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com