=TRIM(MID(A1,FIND(",",A1)+2,1000))&"; "&LEFT(A1,FIND(",",A1)-1)
There's always more than one way to do things in Excel. This video shows one way. Please let me know if you have any questions.
David T.
asked 03/16/23In cell A1, it says "269 Southwest 13th Avenue, Pompano Beach, FL".
In cell A2, I want it to be reformatted to "Pompano Beach, FL; 269 Southwest 13th Avenue".
What formula would I use to reformat?
=TRIM(MID(A1,FIND(",",A1)+2,1000))&"; "&LEFT(A1,FIND(",",A1)-1)
There's always more than one way to do things in Excel. This video shows one way. Please let me know if you have any questions.
You can write custom worksheet functions in VBA. The function below will accomplish this task.
Try this:
=MID(A1,SEARCH(",",A1) + 2,LEN(A1)) & ", " & LEFT(A1,SEARCH(",",A1)-1)
NOTE: This formula will work provided that the address is separated by a comma followed by a space AND it separates the strings to be reversed.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Joseph S.
03/18/23