How To Use the new Excel TEXTBEFORE & TEXTAFTER Functions to Save Time on Your Next Project

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Extracting certain parts of a text in a cell in Excel wasn't easy. Microsoft recently updated the new TEXTBEFORE and TEXTAFTER functions to make them even more useful. If you need to extract text that occurs before or after a given character or string - this is your solution! I also show you an Excel trick you can use to avoid needing to use nested functions to extract the last delimiter. These new functions also got an update and have more optional arguments you can use. I'll show you how to that in the video.
    ⬇️ DOWNLOAD the workbook here: pages.xelplus.com/textbefore-...
    Key Highlights:
    TEXTBEFORE: Extracts text before a specified delimiter, and you can customize the instance number, match mode, and result if not found.
    TEXTAFTER: Retrieves text after a designated delimiter, offering similar options for customization.
    Bonus Trick: Learn how to efficiently extract text in reverse order by using negative instance numbers and match to end, making it dynamic and flexible.
    🌍 My Online Courses ► www.xelplus.com/courses/
    00:00 Extract Text - Split Names in Excel
    01:18 TEXTBEFORE
    03:53 Bonus Trick
    05:36 TEXTAFTER
    07:03 Wrap Up
    🎬 LINKS to related videos:
    - New Excel TEXTSPLIT Function to Separate words with Ease: • New Excel TEXTSPLIT Fu...
    - Breaking News! We FINALLY get the Excel functions we've been Wanting: • Breaking News! We FINA...
    ➡️ 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
    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

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

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

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

  • @zzota
    @zzota Год назад +64

    You can also combine them to grab a middle element: =TEXTBEFORE(TEXTAFTER(B8, " "), " ")

  • @reneberthet9168
    @reneberthet9168 Год назад +41

    That -1 was an aha moment for me! I appreciate you demonstrating the different aspects of the functions so we see how it works. Thank you for your videos! 👍

  • @christosmylonas
    @christosmylonas Год назад +9

    You are a great consultant and teacher at the same time!

  • @roywilson9580
    @roywilson9580 Год назад +2

    It is about time we had some easy to use text functions! I wish they had been available 5 years ago when I was working on a project that included a lot of text manipulation.

  • @AndreaUK1973
    @AndreaUK1973 Год назад +2

    Thanks Sweetie! So glad you test it many times until you find a better way to show us!! Thank you!! It’s not easy to understand the arguments and I think that’s why it puts many people off using some excel functions! As we are constantly under pressure of deadlines, we can’t stop to understand it! That’s why I spend my free time watching your videos!! 😂

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

    Very helpful! Thanks! The search from end argument of these new functions really improves the functionality

  • @bluesboynicky6772
    @bluesboynicky6772 Год назад +2

    One thing to add while I was playing around - you can also type in words as your delimiter. I was trying to split a column that had TWO names ex. "John Smith and Jane Doe" into two columns, each with one name. I used " and " as my delimeter and it worked like a charm! Thank you Leila!

  • @bajantraian
    @bajantraian 11 месяцев назад

    Hi Leila! Thank you for your videos; they have helped me tremendously at work and in school. I like the way you explain things : easyto comprehend and to the point, with examples! Love you !

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

    Excellent! I could have used that yesterday to separate the different parts from an email address. I've always used left / right / len and find instead, but this is much simpler! Thanks!

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

    Thank you for provide this point i will follow your idea in make video that you explainse very exactly

  • @Riri-qi2fu
    @Riri-qi2fu Год назад +3

    A pat on the back to all MS Excel team! For the past couple of years, you've done amazing job and making my jobs so easy. Continue to do great work! One request - I would be grateful if you could upgrade 'wildcard formula* for searching text🙏

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

    Excellent. You made it very simple. Thank you very much.

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

    Leila, you are my go-to person for anything Excel related. I learn so much watching your videos. This was excellent material! Thanks for sharing your knowledge!

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

    I watched this a month ago, and thought it was really cool, but wondered if I would ever need it. Today I did need it, and it save me HOURS!!

  • @vivekphadke16
    @vivekphadke16 Год назад +2

    Excellent, Thanks Leila for updating or shall I say enlightening us ... as always

  • @fyrman9092
    @fyrman9092 25 дней назад

    This is much better and easier than LEFT, MID, RIGHT for multiple instances.

  • @jerry5149
    @jerry5149 3 месяца назад

    Your presentations are so professional, it's astounding!

  • @fpoester
    @fpoester Год назад +4

    I gotta say "thank you" several times for you Leila, many insights on my job these days comes from your videos and makes me find solutions that are a perfect fit to different situations. Keep on and I'll make sure to press that Like button!

    • @LeilaGharani
      @LeilaGharani  Год назад +2

      That’s great to hear! Kudos to you for taking the time to watch and implement.

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

      I have questions, For example, A1 row has name, B1 has dental cost the A2 is blank, B2 Vision amount but A2 is blank. I have 300 employees, Do you have another method not fix row A2
      Thanks Sue

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

    This was so awesome! Thank you! I always dreaded the LEFT() FIND() LEN() mess of doing this.

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

    Greatly appreciate the knowledge sharing. Thank you so much

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

    Always worth watching! Today I even thought, yeah I already know those, maybe I skip this time; but I had no idea about the bonus tip and that could have helped me yesterday. Thank you Leila

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

    Really helpful. Very clear. Thanks.

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

    This is an awesome trick Leila. Thanks!

  • @gerbherb8215
    @gerbherb8215 5 месяцев назад

    Nice! Thank you.

  • @g.r.2985
    @g.r.2985 Год назад

    Love your take on the Austrian system!! Gold! That "Eva". eh!! What a "mega collector"!!

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

    Thank you I learned something new today.

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

    Hello Leila thank you I was looking into this formula to separate the numbers an text . It came handy thank you for the information..

  • @muminatiah547
    @muminatiah547 Месяц назад

    Amazing as usual, really thanks

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

    Awesome functions

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

    Thank you very much my dear teacher for this wonderful video

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

    Very cool! Useful video

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

    Thank you Leila, I now understand how some formula works by watching your vidoes 😁😁😁

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

    Great functions and very well presented! Thank you!

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

    This is great Leila, thank you.🤓

  • @Troy-Echo
    @Troy-Echo 5 месяцев назад

    That worked for my needs. Now I just need to use these to convert dates from a format of 2023-12-19 to 12/19/2023 for Excel to enter the date as I need it. Or figure out a custom format to work that out for me. Thanks for setting me on the path Leila! (Again and again)!!!

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

    U r my great teacher 🙏

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

    Thanks for the share.

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

    Lovely, thanks...

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

    very sophisticated formula use

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

    Clear, as usual !

  • @mohammadj.shamim9342
    @mohammadj.shamim9342 Год назад

    Thank you Leila.

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

    simple and super, thank you for sharing

  • @handsomecaveman
    @handsomecaveman Год назад +2

    I don't use Excel that much anymore in my daily business routine but, coincidentally, I had a workbook sent to me today and these are the exact functions I used to extract some data from it (+Datevalue). Great job!

  • @eradotcom
    @eradotcom Месяц назад

    thanks for the enlightenment

  • @joshuamanampiu6489
    @joshuamanampiu6489 3 месяца назад

    Thank you.

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

    Very nice tricks.

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

    Thanks for guide

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

    Thank you for this new text function tutorial.

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

    Sweet. Never new about these functions. I already have a few files in mind to update. Great showcase.

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

    Great as always,
    👍🏿👍🏾👍🏼👍🏻👍👍🏻👍🏼👍🏾👍🏿
    Love from Iran.

  • @wayneedmondson1065
    @wayneedmondson1065 Год назад +5

    Thanks Leila! Great tips. Worth mentioning that these functions will also SPILL and if you want to add the dot that gets removed at the end of the last title, you can use IF, as in: =IF(TEXTBEFORE(A2:A15,". ",-1,,1)="",TEXTBEFORE(A2:A15,". ",-1,,1),TEXTBEFORE(A2:A15,". ",-1,,1)&"."). Thumbs up!!

    • @sparks1779
      @sparks1779 Год назад +3

      Awesome, I was wondering about the period. Thanks for the tip.

    • @roderickmose4691
      @roderickmose4691 Год назад +4

      I used =TEXTBEFORE(A1," ",LEN(A1)-LEN(SUBSTITUTE(A1,". "," "))). Substitute 'dot space' with 'space'

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

    Great tips

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

    Thanks!

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

    Thanks! I didn't know textbefore textafter was a thing. Going to use this trick when I grt into work today.

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

    Really helpful.... thank you 🙂

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

    Oh the hours of my life in the 1990’s and 2000’s I want back! What a great feature AND a great explanation of how to use it!

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

      Thank you Garth. Glad you find it useful.

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

    Nice trick!

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

    Great stuff 1 as always

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

    Great as usual thank youuuuuu

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

    THANK YOU SO VERY MUCH, this short formula saved me so much work 😂😂😂

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

    Dear Mrs, Leila hopes you are doing well, thank you so much for this inquiry
    You are a great consultant and teacher

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

    Awesome Leila, thanks!

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

      My pleasure, Chris! Hope it will come in handy.

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

    Nice, thanks for all this learning seriously

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

    Thanks. It is a great video as usual

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

    That was very useful. Especially the -1 to search from right to left.

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

    Ms. Leila, I am a fan of yours and learning lot of things from your each and every video. Could you please advise whether we can right a formula for cutting optimizer in Excel if possible? Appreciate it very much.

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

    So good function, thanks for Explaining. I found these two formulas a few days ago and using it.

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

    This is great! I wonder if they will do the same thing for some other formulas.

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

    Thanks

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

    By the way you taught me 90% of what I know in excel as a matter of fact you taught me power query and that we can add an additional calculated field in pivot....thank you for that

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

    Hi Leila!!! Love your videos!

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

    I'm gonna try this today. I was looking for it last month but it's not yet in my Excel so I had to use other functions. 😅 Thank you for this demo. I learned something new again today. ❤️

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

      i think so your idea

  • @chh8860
    @chh8860 Год назад +3

    Very cool ... and to think all this time I have been avoiding working with people with long titles in their names ... and now I no longer have to do so ... 🤭
    Once again, I would have no idea these 'tricks' are available if not for Professor Leila ... thank you ... thank you ... thank you ... 😍

  • @JoseAntonioMorato
    @JoseAntonioMorato Год назад +6

    Dear Leila,
    The TEXTAFTER and TEXTBEFORE functions, unlike the TEXTSPLIT function, work perfectly with selecting an array of text, rather than just a single cell:
    =TEXTBEFORE(A2:A15,". ",-1,,1)
    =TEXTAFTER(A2:A15,". ",-1,,1) 🤗

  • @sandrap.3399
    @sandrap.3399 Год назад

    Here's a subscriber from Austria - many thanks for this tutorial^^

  • @vickidash-slesinski746
    @vickidash-slesinski746 Год назад +9

    Awesome. I work with a team that implements ERP software and sometimes the address lists for vendors and customers come in together. This should make it easier to separate it out.

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

    Great. Because I needed a Split function so much, I had developed mine in VBA. But I never lost time in solving this type of problem, as it is not very common in the data I work with. I had already stopped using my function and now I have two very interesting new ones. Thank you very much.

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

    Great features and great example. I liked minus one trick

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

    excellent

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

    Simple regular expressions included in Excel. Great to know it has that now.

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

    Very cool RUclips channel. Excel is so massive, it's hard to find neat tricks unless you're always playing with it and handling weird unique data sets on a daily basis.

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

    very good

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

    Wow how did I miss this one

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

    Awesome

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

    Great day my sister

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

    Wonderful! Thanks for the video! I love how you could explain the logic behind every formula in the easiest way! If I'm not mistaken, the functions above are one of the features in the Power Query?

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

      Glad you enjoyed it! These are regular Excel functions.

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

    I have always enjoyed all of your videos, and find them VERY VERY helpful.
    I noticed that alot of your names on this video looked as if they were outside of the United States. When people in the US, use their entire name, some or most of them use their middle Initial. Would this work with that involved??

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

    Thanks Leila for this cool and useful trick! As an "insider" you could try it BEFORE, but I will have to wait to try it AFTER, when released in "general"! 😁

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

      Haha, they're already released though. At least to the monthly update channel.

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

      @@LeilaGharani Mine is Semi Annual update...

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

    Would not flashfill work>> great video

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

    What excites me way more than new functions, is your gorgeous hair style 😍🤤 dyson?

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

      What?! How did you know? But yeah, gave the Airwrap a chance and even I can use it 😁

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

      @@LeilaGharani I just assumed you would somehow automate this process 😛Cannot imagine you with a hot lockenstab, waiting 1 minute for each single hair 😀
      Anyway, they should pay you now for the live expo. Looks awesome

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

    This is so helpful. I still don't have it on my excel though!

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

      You're probably on a semi-annual update plan. It will be there soon :)

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

    Hi, what we can do if we want . After that Dr., Please explain, very useful video, thank you so so much

  • @mr.brownstone5716
    @mr.brownstone5716 Год назад

    I have uses for both these formulas. It's kind of stupid we have to trick Excel with the -1. The formula itself should be set up that way. Lol. Thumbs up!!

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

    Just wanna know how do you keep your hair so pretty & thick after so many amazing videos uploaded . I dropped off a lot of my hair after loved your video. 😉

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

    Cool

  • @user-ju1it8wf2j
    @user-ju1it8wf2j Год назад

    Very nice trick with -1.
    I want to know why are we getting a random function name (in your case NPER @ around 0:56) in the Name Box? Is it a feature or bug?

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

    That'll make it easier to extract the last byte of an IP address (example: 10.34.123.4) ! The hoops I had to go through before: =MID(A2,FIND(".",A2,FIND(".",A2,FIND(".",A2)+1)+1)+1,3) simply replaced by =TEXTAFTER(A2,".",-1) A lot cleaner.
    For those interested, I managed to get the other bytes using: =INDEX(TEXTSPLIT(A2,"."),2) to get the second byte (change the 2 to get select any byte, which is even cleaner but unlike Leila's method, doesn't check for errors)
    Thanks Leila!

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

    Thank you! what type of formula to use to get specific words within a cell to be formatted in red? in order to check which cells contains specific words. Thanks

  • @MrSupernova111
    @MrSupernova111 Год назад +2

    Pretty cool! I like the Excel is adding new functions to simplify our jobs but at the same time I feel like my Excel skills become less relevant each time they add new functions. I wonder if VBA users are also impacted by these new functions as Excel makes it easier and easier to perform complex procedures without the need to learn programming. Great video as usual. Thanks!

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

      @@b0159673 …and for US Federal employees, this is doubly true, lol!

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

      not only because Users don't know, many small business have their sheets on Excel 2007 and 2010. In my experience: sometimes keep the 2007 functions only, the first XLSX version and even sometimes don't use 2007 new functions (such as IFERROR, using IF( ISERROR(... ) to achieve compatibility across different Excel versions in a medium-size company. Also, LOOKUP of any kind (V/H/X) is not advised - in older Excel versions the data need to be sorted, it consumes a lot of memory (and speed) sometimes crashing computers with not enough resources depending on the spreadsheet size - I use one-MATCH-many-INDEX successfully for many years.
      I like the EXCEL internationalization - functions translated, values formatting - it is the only "computer language" that can reach all the people around the world with a minimum Math & Logic. But when they think about these new functions... they don't listen the Users, they keep the same old logic such as the ones presented in this video, few Excel functions discriminate the same character (or string) in different positions... and it is become harder and harder for individuals or small/medium business to adapt all their spreadsheet data into this Software as a Service (SaaS) products to people that already paid for their software. Never mind, I'm just letting off
      By the way, the VBA Users can call these new functions as "cell operations" just like any other Excel function if they want to, but VBA itself is not impacted on any way - they said the VBA development reach to an end months (maybe few years) ago - there is no VBA function, command or procedure equivalent to many new Excel functions - if we want to use these new functions in a VBA program we must call them from the spreadsheet which the VBA program is attached to, related to the cells not to the VBA variables.

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

      @@b0159673 funny how you brought up xlookup. I never used it but earlier today for work I had to learn it and used it. It saved me so a lot of time.