Remove ALL Unwanted Spaces in Excel (TRIM ALL Function?)

Поделиться
HTML-код
  • Опубликовано: 25 июл 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Stubborn spaces can become a headache in Excel. You'll come across extra spaces when you copy data from your email or import data from another system. Each cell value ends up having trailing or leading spaces. Sometimes they can be removed easily with the TRIM function but sometimes TRIM doesn't work! In this video I'll show you how you can TRIM ALL Spaces - also the stubborn ones.
    ⬇️ DOWNLOAD the workbook here: pages.xelplus.com/trim-spaces...
    TRIM can only remove spaces with an ASCII character code 32. But there is another character code that represents a space. It's commonly referred to as a Non-Breaking Space and its ASCII character code is 160. Such spaces commonly occur when we copy text from Outlook or a website to Excel. With the Excel function CODE() we can identify which character code we are dealing with.
    To remove a non-breaking space in Excel we can use the SUBSTITUTE function. With this function we can look for character code 160 in a cell and replace it with a regular space.
    For numbers that are not recognized as numbers by Excel we can use the VALUE function. If the number contains non-breaking spaces use it in combination with the SUBSTITUTE function.
    🔎 Video Insights:
    - Understand why the TRIM function might fail to remove certain types of spaces.
    - Learn about the non-breaking space (ASCII character code 160) often encountered in data from external sources.
    - Master the SUBSTITUTE function to eliminate pesky non-breaking spaces.
    - Discover how to use the VALUE function effectively when Excel fails to recognize numbers.
    💡 Key Takeaways:
    - Tackle common but tricky Excel challenges with confidence.
    - Learn how to clean and format your data correctly, saving time and reducing errors.
    - Enhance the reliability of your data analysis with these expert tips.
    00:00 What To Do When VLOOKUP Does NOT Work
    01:01 What to Do When TRIM Does Not Remove Spaces
    03:36 Use SUBSTITUTE to Remove Spaces Between Words
    04:49 What To Do When Excel Does Not Recognize Numbers
    07:20 Wrap Up
    Check out other Excel tips and tricks in this playlist: • Excel Hacks: Tips & Tr...
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #excel

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

  • @LeilaGharani
    @LeilaGharani  6 месяцев назад

    Grab the file I used in the video from here 👉 pages.xelplus.com/trim-spaces-file

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

    Hi, I'm from Brazil and watch everything I can from the channel. Thank you very much for the tips, your insights are very interesting and make the daily routine of those who use Excel as a work tool a lot easier. Good job, I wish you much success!

  • @eddywijaya2204
    @eddywijaya2204 3 года назад +3

    Straight to the point. I've been searching this method for an hour. Thanks for the tricks!

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

    Wow! Just Wow! Thank you for being such a marvellous human being Leila. After struggling all week to figure this out I could almost cry after listening to your wonderful voice explaining the way forward in such perfectly simple terms. Thank you!

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

    Leila, you are truly my HERO, I SO APPRECIATE YOU! This lesson has just allowed me to save 4hours of formatting. Thank you, thank you, thank you.

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

    Once again i'm speechless. The quality of explanation, including a workbook to test everything, is outstanding.

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

      Thank you! I'm glad you like the content.

  • @Taxita
    @Taxita 4 года назад +4

    The best video. Solution to my problem when I convert PDF to excel. Thanks for sharing your knowledge.

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

    You are awesome. Have done a few of your courses. The clarity in your explanations is of highest order.

  • @williamreith1186
    @williamreith1186 4 года назад +8

    I wish you'd made this video last week because I encountered exactly this problem on Sunday whilst reconciling expenses. Based on topic expertise, delivery, A/V quality, visuals, and narration, you are the best teacher on RUclips bar none. Furthermore, your lessons and courses yield excellent, professional results. I look forward to your Thursday morning installments and have watched your accounting videos since they began a couple of months ago. Great perspective. Thanks many times over.

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

      Thank you for the kind feedback William.

  • @ariel-zight
    @ariel-zight 11 месяцев назад +1

    Leila, you rock! I've tried all the quick and easy ways of solving this issue and all failed. Finding the right character did the trick. Thanks a ton! Subscribed!

  • @forestsunrise26
    @forestsunrise26 4 года назад +3

    Dear Leila, thank you so much for your sharing your knowledge with us. Your videos have been helping me a lot with my new job. Please keep up the good work!

  • @alfayezamj
    @alfayezamj 2 года назад +5

    Leila, you have no idea how long i have suffered from this spacing issue specially with numbers! you are going straight to heaven for making our life easier :) THANKS A LOT. i have been following your channel & becomeing a huge fan.

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

      Happy to help 😊

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

      Yeah, man! Leila is amazing. I know when I have an excel issue, her video will go deeper than others and not only resolve the problem but teach it to you.

  • @IvanLopez-rv7wh
    @IvanLopez-rv7wh 2 года назад

    this was a super help for me i used this today & fixed a lot of issues with spaces on my spreadsheet. thanks so much for your time and detication for these tutorials they are a really help for a lot of people worldwide !!!! awesome work !!!

  • @FaysalEasyExcel
    @FaysalEasyExcel 4 года назад +3

    I know about Trim(). But the explanation you have given, has never seen before. thankyou.

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

    Hey Leila, Thank you so much for this video it helped me alot to clean my data. Keep posting these kind of videos. Its a great belp for many people who are working on Excel. Thank you so much ❤️❣️

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

    Great.. this was exactly the answer which I was looking for. Explained in detail but simple and powerful way. Thanks a lot. May you be showered with all peace and prosperity.

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc 3 года назад

      Please visit channel "off to office" to know everything about text to column at one place and not in bits and pieces in different videos.

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

    Hi Leila, I just bought your course on Udemy. You are a mentor for me! I will study hard and practice!

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

    You are my hero! Leila G. I asked Google how to get rid of spaces in Excel and you showed up and solved the problem.

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

    Thank you very much Leila, great tip. I do have a little one too when it comes to character spaces with numbers, what I do is select the space copy it and use the Ctrl+H to replace that space with "nothing and it works most of the time

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc 3 года назад

      Find and replace helps most of the time. Please visit channel "off to office" to know like methods of cleaning raw data and everything about text to column at one place and not in bits and pieces in different videos.

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

    Leila, you are a star. I have been struggling to find a youtube video that can fix this issue. You are an absolute star 🌟

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

    You're an angel. This is very useful at work as we always taking data from NAV system to excel. I always face this problem, now found the solution .

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

    This was exactly what I was looking for to remove the blank spaces. Using the Code function also was helpful in identifying the ASCII code for the spaces in my sheet.

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

    You are the best, smoothly, simple , choose the simplest way which we can understand easily, thanks a lot for your excellent work

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

    Bundles of video out there on youtube, but this one covers the true problem statement and solution. Appreciated. Keep sharing such videos.

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

    I've had no idea about the non-breaking space until today. Thank you, Leila! This will save me a tonne of time.

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

    I had this challenge this week and I was stuck. It took me a while to figure it out. Thank you so much Leila.

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc 3 года назад

      Please visit channel "off to office" to know everything about text to column at one place and not in bits and pieces in different videos.

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

    Wow Leila.. It is soooo helpful. I was just wondering how to remove 160 spaces but here we go again u helped me alot like other issues. Thank you so much😘

  • @shadrackawunyo7786
    @shadrackawunyo7786 4 года назад +6

    Another "eish" moment video. Never seen before. Short, snappy and on point

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc 3 года назад

      Please visit channel "off to office" to know everything about text to column at one place and not in bits and pieces in different videos..

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

    Learning never ends. Leila, your videos inspire to learn more and more...Keep this up.

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

    Hi 👋 Leila Excellent coaching technique I watch your videos because I learn something useful and innovative Thanks a lot for helping us Keep the good work going 👍

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

    This is an incredible tutorial video. It is so refreshing seeing women, attractive at that, competently talk about technical stuff

  • @kahhengyeong7947
    @kahhengyeong7947 4 года назад +13

    Another OMG from me! I thought I knew the trim function and nearly skipped this video. Not only i learnt so much more but also learnt not to skip your videos!!!

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

    Thanks Leila, you have always understand the problems before I encounter them.

  • @SasiKumar-px6wb
    @SasiKumar-px6wb 4 года назад +1

    The way you explore the excel is just awesome. Keep doing 👍🏼...

  • @nanoglee7786
    @nanoglee7786 3 года назад +1

    This is amazing. I recently was doing an ebook question and when I copied all of the data over to excel there were many spaces and I couldn't do my calculations. Thanks so much for this video, I was able to fix the numbers!

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc 3 года назад

      Please visit channel "off to office" to know everything about text to column at one place and not in bits and pieces in different videos...

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

    Olla!
    Tu es toujours au top Leila, quel bonheur de suivre tes vidéos sur Udemy, en plus de celles de youtube bien sûr !!!!

  • @christyamaranathfernando8212
    @christyamaranathfernando8212 Год назад +1

    Thank you so much. Your tutorials are so useful, very easy to follow and understand.

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

    Char(160) did the trick. I know that I need to read more about it. Amazing. Thanks

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

    That's helped clear up some annoyances I've had before copying data from / referring to another spreadsheet. Many thanks.

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

    WOW! the tutorial is unique. No one that needs office softwares' help and will come to here or see ur expertise that won't be tempted to click the subscribe button. Thanks the video helped me.

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

    Thanks for this. It’s one of the common difficulties I had to deal with. Now I know a great solution. You’re amazing!!!

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

    I just used the formula.... Thank you Leila! You're Godsent!

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

    These are great Excel solutions to really annoying issues that do happen. I would likely use Power Query if I had to repeat the process more than once. Thanks Lelia

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

      Agree - Power query would be the optimal solution if the data set was organized properly.

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

    this is super helpful....was skeptical at first but it worked...my character was not 160 but 202....helped me identify that using your video!

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

    This video changed my life right now 🤩 This is very helpful. Thank you so much!! 😇

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

    Very useful dear sister
    I watch all of your video and you are the best leader for me

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

    Wow thank you so much....I was having this problem and I couldn't figure that out....and I was thinking I was missing something somewhere....thank you to understand our problems

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

    I was wondering why the TRIM function didn't remove all the unnecessary spaces and now I know why. Thank you Leila!

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

    Thanks Laila for the detail of this problem. And thanks again for sending me this solution few months earlier 🙂

  • @user-cx7tt2rs4r
    @user-cx7tt2rs4r 4 года назад +1

    You're so beatuiful and your tutorials are amazing! Thanks for your sharing!

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

    Very useful video, I did face same problem numerous occasions at a time paste some data from other sources, I do know these are not numbers rather a text I try to resolve it as using tools as paste special as number but all in vain now I have new options as trim , thanks a lot for your assistance.

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

    The way you alwaaaaayyyyyyyssss save my life. Only GOD can pay you back. I was trying to fix that for months. I was reduce to find a VBA code until you come up with the LIGHTS. The only Excel Angel on earth :)

  • @Prabasmsoffice
    @Prabasmsoffice 4 года назад +5

    As usual you are amazingly explained this. Thanks.

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

    My goodness .I spent hours to fix this problem.😭😭😭 Glad that I had watched your video and It worked . Thank thank thank thank you so much dr. .

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

    You are a blessing in disguise. Much love from dubai!

  • @47shashank47
    @47shashank47 4 года назад +1

    I really thanks to you for this video. First time I found a solution to this problem. 2 years back I had to write a VBA script about 80 lines
    to solve this. I could not figure it out to solve this in excel.

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

    I have learnt lot of Excel from your videos. You are amazing!

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

    Great!
    I was looking for how to remove spaces from a value and found the solution.
    Thanks Leila

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

    Hi Leila.. great tips. Before watching this video, I was under the impression that CLEAN would solve for CHAR(160), but it does not. Your use of SUBSTITUTE along with TRIM and or VALUE is perfect. As always, learned something new today from your channel. Thanks for all the tips, tricks and insights that you so generously share with each new lesson. Thumbs up!
    PS - Note that if you user Power Query, Transform=> Format=> Trim will remove the space in the original data created by CHAR(160) but Transform=> Format=> Clean will not.. interesting!

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

      Thanks for your feedback Wayne. I wish Excel's Trim function behaved that way too....

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

      Trim does spaces and Clean nonprintable characters. Clean is great when you bring in stuff from the web that is full of all those weird characters and symbols that make no sense. You don't see them on the webpage but they show up in Power Query, Word, etc.

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

    thanks for explaining this. spent easily 60 mins trying to fix an issue in my excel sheet.

  • @CarlGillstrom
    @CarlGillstrom 2 года назад +2

    Excellent! Although SUBSTITUTE did not work for my specific issue i found that pasting code 160 in "Find and replace" solved my issue. Also I can see now that it's exactly what earlier commenter Thiago suggested.

    • @_NorthernVibes
      @_NorthernVibes Год назад +1

      THANK YOU!! I was fiddling around forever trying to make sense of Thiago's explanation (still a great suggestion but wasn't simple enough for my basic excel knowledge lol). Super glad I found your comment, this made sense to me and worked so I wasn't losing the other spaces.

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

    TRIM ALL function is a great idea!
    Btw, for this kind of cleansing, Power Query does an amazing job! :)

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

      Very true :) Power query rules!

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

    I used TRIM(SUBSTITUTE(Value, CHAR(160),CHAR(32)) but you brilliantly skip that argument. Thanks! I'll try to write a VB function and tribute that to you. BTW, your Udemy VBA course helped me so much in understanding more complex codes at work.

    • @nihalalsamsami526
      @nihalalsamsami526 3 года назад +1

      If I have more than one space how I can remove??

  • @Wulandari-gr2se
    @Wulandari-gr2se 4 года назад +2

    Thank you Leila. It's great tips that I need for my data work

  • @ansarulalikhan634
    @ansarulalikhan634 4 месяца назад

    This video just saved my tons of time. Love you so much ❤️

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

    It was very helpful! Nothing works, neither TRIM or SUBSTITUTE or CLEAN to remove the stubborn spaces! This combination is great! Thanks' a lot, it saves me great time and nerves!

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

    Thank you, for the last two years I've had to put a helper column in to process a column and this explains why , thanks

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

      No more helper columns needed :)

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

      You can use sumproduct function instead ctrl shift enter to

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

    Thanks for this. It took me 2 hours today to realize this as SUMIFS was not working. Wish I had watched this beforehand.

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

    Thank you so much. It helps me on the trim failure which bothered me since long time ✌️☺️

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

    Great Tutorial Leila! This solved the issue i was dealing with perfectly !!

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

    This video saved a ton of my time... i was ripping my head because of this issue... thank you for the explanation.. really helped..

  • @CGTechInnovations
    @CGTechInnovations 2 года назад +2

    Hi Leila, thanks for this. I tried Google Sheets and it was smart enough to quickly remove the blank space that Excel had great difficulty removing. I used "Find and Replace" in the edit menu to remove currency abbreviations and space in numbers I copied from my bank's website. I assume that Google Sheets' trim function is likely to work easily too.

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

    beautifully explained laila. I've finally found a solid explanation to use CHAR function.

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

    Thank you so much! Couldn’t figure it out until the code portion, ours was code (9) and once we figured that out, piece of cake!

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

    Thanks for this video!!! it helps a lot and save me time wasted trying to copy info from mail.

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

    Awsome.. i always have data to copy from email to excel and face such problem.
    Thanks now my problem solved

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

    That = value ( substitute...) function is life saving, thank you!!!

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

    Fantastic tip. Will save a lot of work in the future. Thank you.

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

    All i need to say.....u are just awesome mam....& thank you very very much...

  • @manmoji09
    @manmoji09 Год назад +1

    As usual one stop solutions to all my excel problems.. 🎉Thanks Leela

  • @omarh.l.l8127
    @omarh.l.l8127 4 года назад

    Bravo! :). Well done, always going the extra mile. Great tips

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

    Thanks! I always learn something new from your videos!

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

    This was a very helpful, insightful video. Value added. Glad I subscribe to your channel.

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

    I came across the 160 code today for the first time.. thanks soooo much!!!

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

    That's brilliant. I think you have just saved me an hour a month! Thank you.

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

    Thanks for your video, and great solution. This behaviour has flummoxed me in the past!

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc 3 года назад

      Please visit channel "off to office" to know everything about text to column at one place and not in bits and pieces in different videos...

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

    You are indeed great. Stay Blessed

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

    THANK YOU SO MUCH! Great video, saved me so much time!!!

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

    Never encountered that issue!! But simply great to know this ASCII!!!

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

    Great Teaching style all videos are awesome.Thanks Leila

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

    Wunderschön Liebe Leila, wirklich nützlich, CHAR 160, zusammen mit TRIM gefällt mir sehr,
    Viele liebe Grüsse 🤗 🌞

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

    You solved a great problem from my life! Thank you very much for this video !!!

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

    Where has this video been all my life!

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

    I just used this function to solve a problem with my data, thanks Leila.

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

    One of the greats tips I've had this year

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

    Damn, this works!!!!!!!!!!!!!!!!!!! I think this is the most useful video I have seen on RUclips!!!!

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

    As usual, blew my mind. thank you!!

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

    Great trick...I faced Char(160) while copying table data from email body... It messed up my mind for quite a long until I cracked it about 2 years ago using SUBSTITUTE() and TRIM()👍

  • @SP-rd4nu
    @SP-rd4nu 4 года назад

    Oh lucky me... today morning only i faced same issue where trim didn't worked... fortunately i found this one when i really needed it .. thanks a lot mam

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

      Great timing then :) Glad it's helpful.

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

    great trick, thank you very much, all you videos are briliant