Home > Software design >  How To Extract The CAPITAL WORDS or BLOCK LETTER WORDS From A String In Excel
How To Extract The CAPITAL WORDS or BLOCK LETTER WORDS From A String In Excel

Time:03-14

How to extract the capitalized full words from a string in excel ? Refer the first Image, I have used the following formula to extract the CAPITAL / BLOCK LETTER WORDS From a string in a cell, it works perfectly,

• Formula used in cell B2

=TEXTJOIN(" ",,
FILTERXML("<a><b>"&SUBSTITUTE(A2," ","</b><b>")
&"</b></a>","//b[translate(.,'abcdefghijklmnopqrstuvwxyz',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ')=.]"))

CAPITAL_LETTERS_IMAGE_ONE

The above formula works perfectly as longs as there is no numerical, but it doesn't give proper output when there are some numbers, refer the Image below, may be I am missing something, using O365

CAPITAL_LETTERS_IMAGE_TWO

Refer the cells those green colored backgrounds, it should bring only the CAPITAL WORDS but it carries also the numbers. What should be the right way here. Thank You!

Courtesy : I have learnt & used enter image description here

  • Related