Need Formula for flip words

ctanxcel

New Member
Joined
Jul 14, 2024
Messages
10
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
Solution
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,221,532
Messages
6,160,381
Members
451,643
Latest member
nachohoyu

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