Using Substitute/Replace to Change Cell Formats For Multiple States

jclegg42002

New Member
Joined
Sep 6, 2014
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi, I try not to bug anyone on here but I am trying to think of how to accomplish the following:

I have a spreadsheet that has a hub name, for example; TAYLOR (MI), and I need it to read out TAYLOR.MI - I can accomplish this no problem. However, I have states like (KY) and (IN). (I cannot download XL2BB on my work computer.)

HubHUB2HUB3
TAYLOR (MI)TAYLOR.MITAYLOR.MI
NEW HAVEN (MI)NEW HAVEN.MINEWHAVEN.MI
NEW HAVEN (MI)NEW HAVEN.MINEWHAVEN.MI
GARDEN CITY (MI)GARDEN CITY.MIGARDENCITY.MI
ROCHESTER HILLS (MI)ROCHESTER HILLS.MIROCHESTERHILLS.MI
ELIZABETHTOWN (KY)ELIZABETHTOWN (KY)ELIZABETHTOWN(KY)
SPEEDWAY (IN)SPEEDWAY (IN)SPEEDWAY(IN)

How do I get HUB to change in column HUB2 to taylor.mi, new haven (MI) --> newhaven.mi, elizabethtown (KY) --> elizabethtown.ky ---- all in one formula?

I used substitute in HUB2 [ =SUBSTITUTE(E2," (MI)",".MI") ] - and REPLACE in HUB3 [ =SUBSTITUTE(F3," ","") ]

I know not being able to use the XL2BB addon makes this difficult and I apologize. If anyone is confused by what I am asking please ask so I can better explain... (I assume there needs to be multiple IF statements included?)

Thank you for all of your help!

MS Office 365 (enterprise)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,282
Messages
6,124,052
Members
449,139
Latest member
sramesh1024

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