How to Remove Extra Spaces using Power Query in Excel

Поделиться
HTML-код
  • Опубликовано: 1 янв 2025

Комментарии • 18

  • @anillpatel
    @anillpatel 6 месяцев назад +1

    Fantastic Video Presentation.
    This is exactly the Function I was looking for.
    Thanks Ajay.

  • @chaswa68
    @chaswa68 2 года назад

    Thank you so much for publishing this. I managed to add a slight adjustment that helped me with my problem: to remove only multiple spaces and not single ones, the also to replace with a delimiter so I could then split the columns. It's not perfect but if anyone else needed this then here is that changed code. The delimiter is # in this case. I also put two spaces in the x function instead of one.
    (text as text)=>
    let
    x = Text.Split(text," "),
    y = List.Select(x,each _""),
    z = Text.Combine(y,"#")
    in
    z

  • @medishettyvamshi5640
    @medishettyvamshi5640 2 месяца назад

    Thank you Anand.

  • @GosCee
    @GosCee Год назад

    Thank you for this, Ajay. How could I remove extra spaces from a column in a nested table before expanding the table?

  • @krishnakishoremalisetty3003
    @krishnakishoremalisetty3003 3 года назад

    This is brillient Ajay!! thanks for sharing.

  • @ParsaH
    @ParsaH 2 года назад

    Very helpful! Works perfectly! Thank you very much!

  • @damdelima
    @damdelima 2 года назад

    Thanks man! Works like a charm!

  • @paramjeet975singh3
    @paramjeet975singh3 4 года назад +2

    sir is this possible with trim function

    • @AjayAnandXLnCAD
      @AjayAnandXLnCAD  4 года назад +1

      You are absolutely right. But the Power Query method is more Dynamic than any other method. Please watch the video till end and let me know what you think.

    • @paramjeet975singh3
      @paramjeet975singh3 4 года назад

      @@AjayAnandXLnCAD ok i will watch

  • @peterpferdproductions1043
    @peterpferdproductions1043 2 года назад

    Very helpfull for me, thank you very much! I tried with search for two spaces or more and replace with nothing like in MS Word "SPACE{2;}", but this did not work.

  • @r_faelpereira
    @r_faelpereira 2 года назад

    Pretty good solution. Thanks for sharing

  • @curious888-8
    @curious888-8 3 года назад

    It’s working with your method, awesome!! Thanks very much.

  • @mnowako
    @mnowako 3 года назад

    Awesome! Thank you!

  • @IMAS7512
    @IMAS7512 2 года назад

    Dear how to remove spaces in number colomn

  • @bijoomalloor1647
    @bijoomalloor1647 3 года назад

    Is there any short cut method for this instead of write program ..? Substitute funtion will remove all spaces including single space between words.. Trim will not remove space in between words.. So, is there any other function which will remove only extra spaces from a sentence..?

    • @kcomarcos
      @kcomarcos 2 года назад +1

      replace " " for "" without the quotes would work

  • @neto8733
    @neto8733 3 года назад

    Amazing