Need Formula for flip words

ctanxcel

New Member
Joined
Jul 14, 2024
Messages
21
Office Version
  1. 365
Platform
  1. Windows
I want to convert data into perticular formate. Below are the example
Examples:
Cell A1 "1232 india 445 United States 468 United Kingdom 96 United Arab Emirates"

Into this format

Cell A1 "India: 1232; US: 445; UK: 468; UAE: 96;"
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Except for the capitalizing of india which another SUBSTITUTE could be added if it's a regular occurrence:

=LET(a,TEXTSPLIT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"United States","US"),"United Kingdom","UK"),"United Arab Emirates","UAE")," "),TEXTJOIN({": ","; "},TRUE,IFERROR(INDEX(a,{2,1,4,3,6,5,8,7,10,9}),"")))
 
Upvote 1
How many different locations do you have?
Do you have some sort of table to show what each one needs to be shortened to?

Also, when you select your "Office Version" and "Platform" in your Profile, it is not very helpful to select every single one! Just pick the one you are currently using. There are lots of great functions available in the newer versions. The point of that is to let us know which version you are using, so we make sure we do not recommend something you cannot use.

1726677822752.png
 
Upvote 1
Except for the capitalizing of india which another SUBSTITUTE could be added if it's a regular occurrence:

=LET(a,TEXTSPLIT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"United States","US"),"United Kingdom","UK"),"United Arab Emirates","UAE")," "),TEXTJOIN({": ","; "},TRUE,IFERROR(INDEX(a,{2,1,4,3,6,5,8,7,10,9}),"")))
Wow...😍 Its amazing..Its working perfect. Many thanks to you..😊
 
Upvote 0
How many different locations do you have?
Do you have some sort of table to show what each one needs to be shortened to?

Also, when you select your "Office Version" and "Platform" in your Profile, it is not very helpful to select every single one! Just pick the one you are currently using. There are lots of great functions available in the newer versions. The point of that is to let us know which version you are using, so we make sure we do not recommend something you cannot use.

View attachment 117009
No I don't not have any other locations. And I don't have sort table to show. I am using Microsoft office 365 version for Excel.
 
Upvote 0
I am using Microsoft office 365 version for Excel.
OK, would you mind updating your profile (what I circled in my previous post) to reflect that?
That will be helpful to anyone trying to answer your questions in the future.
 
Upvote 0
OK, would you mind updating your profile (what I circled in my previous post) to reflect that?
That will be helpful to anyone trying to answer your questions in the future.
Yes. Its updated now. Thanks for reminding me. Have a nice day..😊
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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