=TEXTAFTER(A1," ")&": "&TEXTBEFORE(A1," ")&";"
UDF (User define formula) may helpHello Good Morning.
Hope you are doing well
Could you help me with this. I want to flip words in same cell but now with abbreviations. Is there any formula that helps.
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;"
Thanks in advanced
=LET(
a,A1,
b,TEXTSPLIT(TRIM(REDUCE(a,CHAR(VSTACK(SEQUENCE(15,,33),SEQUENCE(198,,58))),LAMBDA(a,b,SUBSTITUTE(a,b,""))))," ")&"; ",
c,TRIM(TEXTSPLIT(REDUCE(A1,SEQUENCE(10,,0),LAMBDA(a,b,SUBSTITUTE(a,b,"@"))),"@")),
d,FILTER(c,c<>""),
e,REDUCE(d,VSTACK(SEQUENCE(10,,0),CHAR(SEQUENCE(26,,97)),CHAR(32)),LAMBDA(a,b,SUBSTITUTE(a,b,""))),
CONCAT(TOCOL(VSTACK(IF(LEN(e)=1,d,e)&": ",b),,TRUE)))
Thank You..Hello, test this:
Excel Formula:=LET( a,A1, b,TEXTSPLIT(TRIM(REDUCE(a,CHAR(VSTACK(SEQUENCE(15,,33),SEQUENCE(198,,58))),LAMBDA(a,b,SUBSTITUTE(a,b,""))))," ")&"; ", c,TRIM(TEXTSPLIT(REDUCE(A1,SEQUENCE(10,,0),LAMBDA(a,b,SUBSTITUTE(a,b,"@"))),"@")), d,FILTER(c,c<>""), e,REDUCE(d,VSTACK(SEQUENCE(10,,0),CHAR(SEQUENCE(26,,97)),CHAR(32)),LAMBDA(a,b,SUBSTITUTE(a,b,""))), CONCAT(TOCOL(VSTACK(IF(LEN(e)=1,d,e)&": ",b),,TRUE)))
Yes. Its okUDF (User define formula) may help
Are you OK with VBA solution?