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

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ค. 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

ความคิดเห็น • 482

  • @LeilaGharani
    @LeilaGharani  3 หลายเดือนก่อน

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

  • @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!!!

  • @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!

  • @eddywijaya1924
    @eddywijaya1924 2 ปีที่แล้ว +3

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

  • @vivekprabhakar3331
    @vivekprabhakar3331 4 ปีที่แล้ว +1

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

  • @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.

  • @Taxita
    @Taxita 4 ปีที่แล้ว +4

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

  • @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.

  • @FaysalEasyExcel
    @FaysalEasyExcel 4 ปีที่แล้ว +3

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

  • @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!

  • @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 ❤️❣️

  • @IvanLopez-rv7wh
    @IvanLopez-rv7wh ปีที่แล้ว

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

  • @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!

    • @LeilaGharani
      @LeilaGharani  2 ปีที่แล้ว

      You're so welcome, Bill!

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

  • @sandipgumtya130
    @sandipgumtya130 3 ปีที่แล้ว

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

  • @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!

  • @jimkutamamman7604
    @jimkutamamman7604 2 ปีที่แล้ว

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

  • @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 🌟

  • @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.

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

      My pleasure. Glad you like it.

  • @akpokemon
    @akpokemon 2 ปีที่แล้ว

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

  • @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 👍

  • @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 TH-cam 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.

  • @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 .

  • @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.

  • @SasiKumar-px6wb
    @SasiKumar-px6wb 4 ปีที่แล้ว +1

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

  • @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.

  • @ariel-zight
    @ariel-zight 8 หลายเดือนก่อน +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!

  • @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.

  • @MosesKigo
    @MosesKigo 4 ปีที่แล้ว

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

  • @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.

  • @AbizerPardawala
    @AbizerPardawala 4 ปีที่แล้ว

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

  • @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😘

  • @daniyalahmed1753
    @daniyalahmed1753 4 ปีที่แล้ว

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

  • @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 10 หลายเดือนก่อน +1

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

  • @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.

  • @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..

  • @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.

  • @MikaelGreenFly
    @MikaelGreenFly 3 ปีที่แล้ว

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

  • @texasscience6580
    @texasscience6580 2 ปีที่แล้ว

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

  • @user-cx7tt2rs4r
    @user-cx7tt2rs4r 3 ปีที่แล้ว +1

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

  • @Wulandari-gr2se
    @Wulandari-gr2se 4 ปีที่แล้ว +2

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

  • @ashisbasak1175
    @ashisbasak1175 4 ปีที่แล้ว

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

  • @omarh.l.l8127
    @omarh.l.l8127 4 ปีที่แล้ว

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

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

  • @charmainewessels4322
    @charmainewessels4322 2 ปีที่แล้ว

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

  • @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!!!

  • @theengineonfire
    @theengineonfire 2 ปีที่แล้ว

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

  • @user-vy1vu1fq1e
    @user-vy1vu1fq1e 5 หลายเดือนก่อน

    Spent hours to find the solution! Thank you!

    • @LeilaGharani
      @LeilaGharani  4 หลายเดือนก่อน

      Glad it helped!

  • @ICDLRAH
    @ICDLRAH 4 ปีที่แล้ว +1

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

  • @sumitojha1956
    @sumitojha1956 3 ปีที่แล้ว +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

  • @Prabasmsoffice
    @Prabasmsoffice 4 ปีที่แล้ว +5

    As usual you are amazingly explained this. Thanks.

  • @khizernawaz
    @khizernawaz 2 ปีที่แล้ว

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

  • @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.

  • @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 :)

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

      I'm happy it's helping you :)

  • @dennisd5776
    @dennisd5776 4 ปีที่แล้ว

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

  • @kgomotsomaema7911
    @kgomotsomaema7911 3 ปีที่แล้ว

    One of the greats tips I've had this year

  • @johnburton4577
    @johnburton4577 3 ปีที่แล้ว

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

  • @huguititi
    @huguititi 4 ปีที่แล้ว

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

  • @tbadj649
    @tbadj649 2 ปีที่แล้ว

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

  • @habukproductions6966
    @habukproductions6966 4 ปีที่แล้ว

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

  • @ansarulalikhan634
    @ansarulalikhan634 2 หลายเดือนก่อน

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

  • @anitaroberts5980
    @anitaroberts5980 4 ปีที่แล้ว

    Thanks! I always learn something new from your videos!

  • @robertakwasiadjei8223
    @robertakwasiadjei8223 4 ปีที่แล้ว +2

    You are indeed great. Stay Blessed

  • @bakthapuri
    @bakthapuri 4 ปีที่แล้ว

    Very useful video, you're simplifying our day to work life... Thanks a lot...

  • @ashwingowdillu2624
    @ashwingowdillu2624 4 ปีที่แล้ว

    Thank you so much😊👍, I'm looking for this kind of videos.

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

  • @dkb1111
    @dkb1111 4 ปีที่แล้ว +1

    Great Teaching style all videos are awesome.Thanks Leila

  • @nigelfernandes
    @nigelfernandes 3 ปีที่แล้ว

    Where has this video been all my life!

  • @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.

  • @taimoorawan
    @taimoorawan 3 ปีที่แล้ว

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

  • @gjeess1
    @gjeess1 3 ปีที่แล้ว

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

  • @symbiosis4093
    @symbiosis4093 4 ปีที่แล้ว

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

  • @afhlmd
    @afhlmd 4 ปีที่แล้ว

    Leila crushed it again! Thanx for the tip!

  • @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.

  • @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.

  • @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!

  • @amirsalehpour5622
    @amirsalehpour5622 2 ปีที่แล้ว

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

  • @manmoji09
    @manmoji09 10 หลายเดือนก่อน +1

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

    • @LeilaGharani
      @LeilaGharani  10 หลายเดือนก่อน +1

      You're welcome 😊

  • @tingtingxiang143
    @tingtingxiang143 4 ปีที่แล้ว

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

  • @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...

  • @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!

  • @MalikHamaad
    @MalikHamaad 4 ปีที่แล้ว

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

  • @majeedpanahi5783
    @majeedpanahi5783 4 ปีที่แล้ว

    Excellent work Leila. Keep it up.

  • @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!

  • @njndesignandservices2990
    @njndesignandservices2990 2 ปีที่แล้ว

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

  • @robertovelicaz7719
    @robertovelicaz7719 4 ปีที่แล้ว

    Excellent as usual! Thanks Leila 😃

  • @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!

  • @chipturner6957
    @chipturner6957 4 ปีที่แล้ว

    Yet another useful everday tip! Thanks!

  • @adrianb6193
    @adrianb6193 4 ปีที่แล้ว

    That is what I needed! Thank you Leilia :)

  • @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...

  • @dwaynejones454
    @dwaynejones454 3 ปีที่แล้ว

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

  • @diegoz8855
    @diegoz8855 ปีที่แล้ว

    As usual, blew my mind. thank you!!

  • @SanthoshKumar-xy3zm
    @SanthoshKumar-xy3zm 2 ปีที่แล้ว

    Very well explained.Thank you 🙏

  • @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.

  • @sirajudeenpj3458
    @sirajudeenpj3458 2 ปีที่แล้ว

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

  • @remediationdepartment4332
    @remediationdepartment4332 ปีที่แล้ว

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

  • @RahulJauhari
    @RahulJauhari 4 ปีที่แล้ว

    I learned a lot about excel from you. Thanks

  • @olabisihammed3991
    @olabisihammed3991 2 ปีที่แล้ว

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