Forum Discussion

sparvez's avatar
sparvez
Helper I
3 years ago
Solved

Verify if column contains letter

Hello altruists,   How to verify in Power Query if certain column contains letters  ( from A to Z ) ? Thank you in advance.
  • v-jingzhang's avatar
    v-jingzhang
    3 years ago

    Hi sparvez 

     

    You can add a custom column with below code.

    Text.Length(Text.Select([Column1],{"A".."Z"}))>0

     

    If you want it to ignore case, you can use

    Text.Length(Text.Select([Column1],{"A".."Z","a".."z"}))>0

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.