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
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







![Try ... Otherwise: Power Querys version of Excels IFERROR
Thank to my friend Gráinne who showed me this in Power Query:
Try ... Otherwise
In native Excel we have the IFERROR function for when we anticipate errors and know what we want to do with them. In this case, we want to add the Shipped and Inventory amounts. But, if someone has put a note in the Inventory column instead of an error we want to return the Shipped amount. Pretty easy to do with Try ... Otherwise
Theres also a warning: Power Query does not treat 0, null and [blank] as the same things.
For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: http://ozdusoleil.com
My book: Guerrilla Data Analysis 2nd Edition
http://www.amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My old blog: http://datascopic.net/blog-2-2 Try ... Otherwise: Power Querys version of Excels IFERROR](https://i.ytimg.com/vi/UqqeNYR0UvE/mqdefault.jpg)


