Power Query: Keep all Capital Letters with Text.Select in M-Code @OzduSoleilDATA
Power Query: Keep all Capital Letters with Text.Select in M-Code  @OzduSoleilDATA
Uploaded November 2018 | Updated November 2026, 20 hours ago
Rahim Ali asked me about how to keep only capitol letters. For example:

France: F
United States: USA
Republic of China: ROC
United Arab Emirates: UAE
South Korea: SK

(In this video I use names as examples to work with.)

This can be done with Excel's Flash Fill but that's not a dynamic solution. For something dynamic we use Power Query and it's a little tricky and we make clever use of Add Column from Example.

We have to go into the m-code and convert:
Text.Remove to Text.Select. And then we can have Power Query select only A thru Z

And then ... a TWIST!

We've got a problem with the character: É

I show you one way of dealing with that!

This video also includes a summary of Excel Days 2018 in Sofia, Bulgaria where I had the pleasure to give the keynote presentation and teach a 7-hr Master Class on Excel and Power Query.

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning


Website: ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition
amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336

My old blog: datascopic.net/blog-2-2
Power Query: Keep all Capital Letters with Text.Select in M-CodeTOCOL  and DROP | 2 of the 14 new Excel functions | Unwinding a gridNEW FEATURE! Import Dynamic Arrays into Power Query + 8 WarningsExtract a column of data from a Power Query tableMr. Excel Seating Chart Challenge: 100 people 10 tables 11 Sessions * Can everyone meet everyone?Chandoo takes the Excel Expert Live Challenge | PALINDROMES!Create Variable Columns in Power Query - Goodly Challenge - The First Class EditionPower Query: Summing Data from Specific RangesTry ... Otherwise: Power Querys version of Excels IFERRORDiscussion: Learning Excel & 3 Types of Mastery | Guerrilla Data Analysis 3 | SkirmishesExcel Power Query  Data Cleansing Part 1 Different Ways to Format Data Using Power QueryWhat does it take to get data into a Pivot Table? | Excel Ignited Day 12 | SSSVEDA
Excel On Fire (Oz du Soleil) |

Power Query: Keep all Capital Letters with Text.Select in M-Code

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER