Google Sheets - RegEx REGEXEXTRACT, Functions Exctract, Replace, Match Tutorial - Part 1

Поділитися
Вставка
  • Опубліковано 11 жов 2024

КОМЕНТАРІ • 67

  • @paulseldn
    @paulseldn 5 років тому +7

    I have been trying to figure out how to do this for ages. My thanks for this great video. It will save me so much time. Very well and clearly explained. Also, you don't rush through it like most people on here. very helpful. :)

  • @ddcowan86
    @ddcowan86 6 років тому +5

    Great beginner video to RE2 syntax. One thing, can you add a link to a sample copy of your sheet used in the explanation?

  • @strangeDog
    @strangeDog 2 роки тому +1

    講得非常清楚,感謝~

  • @StefanoVerugi
    @StefanoVerugi 7 років тому +6

    thank you, very easy to follow your tutorials
    btw I think you posted REGEXEXTRACT videos in reverse order ?

  • @jaydencollier5265
    @jaydencollier5265 Рік тому

    Thank you so much this is extreamly helpful!

  • @CarlDoesMusic
    @CarlDoesMusic 4 роки тому +2

    um... legit magic. Appreciated

  • @mohamedtawakol5689
    @mohamedtawakol5689 Рік тому

    great video thanks for sharing

  • @mikemccartneyable
    @mikemccartneyable 7 років тому +4

    Excellent tutorial, thanks for sharing

  • @miftahulhadi1007
    @miftahulhadi1007 Рік тому

    THankyou very much for your video, very very helpfulllll 😭

  • @azenxgaming6628
    @azenxgaming6628 5 років тому +1

    Best tutorial, happy to following you...it's help me a lot, thanks

  • @bulbulahmed3098
    @bulbulahmed3098 9 місяців тому

    ❤❤❤

  • @marcobruni5402
    @marcobruni5402 3 роки тому

    Great as always!!

  • @expert1989123
    @expert1989123 6 років тому

    Your tutorials are great but it will be helpful if you also provide the file that you are using so that we can practice with you. Thanks for the tutorial.

  • @josher3436
    @josher3436 4 роки тому +1

    Double Thumbs UPPPPPPPPP

  • @sonnymiles1724
    @sonnymiles1724 3 роки тому +1

    How can we extract the last 2 words from a string? thanks in advance - great tutorial!!

  • @gustavorotondaro6611
    @gustavorotondaro6611 3 роки тому +1

    Thank you for the video! Question...how can you extract multiple words from a cell. For instance, If I had a cell containing "Company X Information Technology and Data Services" and I'd like to extract only the following words: "X", "Technology", "Data Services" - how can I do this? Thanks in advance!

    • @tridsonline
      @tridsonline 3 роки тому

      That's a very specific pattern! You're basically saying that "Company _ Information _ and _" is fixed, it will always be there. If that's really the case, then the pattern would be..
      "Company (\w+) Information (\w+) and (.+)$"
      .. this would yield your output in 3 adjacent cells, beginning with the cell containing the formula.
      More versatile would be ..
      "Company (.+) Information (.+) and (.+)$"
      .. which would handle multi-word companies (eg: instead of just a single word company "X", it would handle "Dell Computers". Or "International Business Machines" etc)

  • @JoshuaDHarvey
    @JoshuaDHarvey 5 років тому

    Great video, thank you!

  • @prempatel1501
    @prempatel1501 2 роки тому +1

    How to extract word that is before UnderScore
    Ex:-" sample1_lab1_part1"
    i want to extract "sample1 "
    Please help me with this... I tried and got output as "sample_" , but i want Just sample

  • @takaakiyamada7294
    @takaakiyamada7294 3 роки тому

    Thank you! :-)

  • @cuneiformscript2665
    @cuneiformscript2665 4 роки тому

    🙏🏻

  • @ehsanellahi6506
    @ehsanellahi6506 4 роки тому +1

    Is there any formula that can split/divide data of one row in to multiple rows, keeping the text data same and divide the values depending on some percentages?

  • @Joe-bl5yo
    @Joe-bl5yo Рік тому

    How do I use regex to extract 2 pieces of info , for eg. if I have to tracking numbers how to I extract both of them if they both start with same “Tracking #”.

  • @timelesstimesgoneby
    @timelesstimesgoneby 2 роки тому

    match and replace to columns together google sheets text to columns

  • @0xJericD_
    @0xJericD_ 2 роки тому

    How do you enable that example guide above your function when adding regular expressions.

  • @kevinyang9484
    @kevinyang9484 4 роки тому

    Hi! These videos have been a huge help but I recently ran into a small problem. For example if I had a column containing things like "product-1-description x1, product-2-description x2, so on so forth," and my goal is to convert them to "product 1 x1, product 2 x2, etc.," how would I do that. Im new to regex but I can successfully find/replace "product-1-description x1" into "product 1 x1." But everything after that gets deleted. Is there a way to insert a regular expression for that comma so that the following terms get replaced as well?

    • @sodaa2489
      @sodaa2489 2 роки тому

      Hi,
      Did you find the answer to this problem?
      If you did, can you share? I am trying to work around a similar problem

  • @MyBilal19971
    @MyBilal19971 4 роки тому

    How can I use these functions in Script editor? I am having trouble in completing a task. Any help will be appreciated.

  • @jeremy_ching
    @jeremy_ching 2 роки тому

    Hello. I have some lines but put into one cell. I would like to add a "-" at the beginning of every line. What should I do? I try \w but it only works at the first line.

  • @NewToneProducer
    @NewToneProducer 3 роки тому

    how do you pull the characters between brackets [ ] ? For example, when I get Google Form data, the survey questions have the names of different options I gave in brackets like [Option 1] and [Option 2]

    • @supa.scoopa
      @supa.scoopa 11 місяців тому

      i'd use a formula with textbefore and textafter (but i'm a noob)

  • @kumarvineet680
    @kumarvineet680 2 роки тому

    Hi,
    I have one issue with REGEXEXTRACT. I want to match and extract the exact word. If I use the below formula, it will display the result “Sing,” but I want it to display “NA.” Because the source cell i.e A1 cell does not have the “Sing” word but it has the word "Singapore".
    =regexextract(A1,”(?i)Sing”)
    So, how can we extract the exact match instead of the partial match?
    Thanks & Regards,
    Vineet

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 роки тому

      Incomplete question. Bring several examples of what should and shouldn't match,

  • @rohitbhandari6382
    @rohitbhandari6382 2 місяці тому

    Sr where are you upload more new things

  • @luisfernandomacedo1451
    @luisfernandomacedo1451 2 роки тому +1

    Great explanation! However, when I tried to extract th number from a text it didn't work properly for all the cells. Look at that:
    tube cleaning (mechanical 50%) 50
    tube cleaning (mechanical 100%) 10
    gdwdtge eyeeeetetec (gecgedetde eedgedegded-cgccegcecvececev 50%) 50
    gdwdtge eyeeeetetec (gecgedetde eedgedegded-cgccegcecvece 100%) 10
    gdwdtge eyeeeetetec (gecgedetde eedgedegded-cgccegcecvececev 40%) 40
    gdwdtge eyeeeetetec (gecgedetde eedgedegded-cgccegcecvececev)
    tube cleaning (mechanical 100%) 10
    tube cleaning (mechanical 50%) 50
    tube cleaning (operator 60%) 60
    tube cleaning (welder 100%) 10
    It isn't extracting 100 number. It is bringing 10.
    That's how I used the function: =IFNA(REGEXEXTRACT(A1;"\w[0-5]");"")
    May you help me out, please?

  • @SanjayDevani
    @SanjayDevani 4 роки тому

    Please Help me with the formula I have a cell (3.50%) or (4.50%) I need the formula to convert into (3.50) or (4.50) just want to remove "%". thank you

  • @manishvaity5492
    @manishvaity5492 2 роки тому

    I am not able to use "REGEX" function in EXCEL 365 as well as Google Sheets!

  • @aryanrawat4548
    @aryanrawat4548 3 роки тому

    Can you tell me how to remove any characters before colon

  • @alexcatswill5940
    @alexcatswill5940 2 роки тому

    How to run the REGEXEXTRACT function on a PC program Excel?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 роки тому

      You'll need a custom VBA function. Otherwise it doesn't exist in Excel.

  • @appleship4369
    @appleship4369 2 роки тому

    URGENT PLEASE: how can i do to add a word and a slash like this (/hi) to a found regex? i need this "/hi" before this regex \b\w{5,5}\b . if someone puts a name with 5 characters in it it must find that 5 characters name witch it does but it has also to add /hi infront of it as a result when it finds it

  • @naomipena6318
    @naomipena6318 3 роки тому

    Is there a way to extract text from the end of a string? I'm looking to extract the handle of a URL.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      Please provide an example

    • @naomipena6318
      @naomipena6318 3 роки тому

      @@ExcelGoogleSheets I'm trying to extract the last digits of a link where that handle is equal to a 'Product ID' number. Since the links have several "/", it's difficult to extract just the very end of the string followed by the last "/". I.e. the link is website/product-page/12345 but I only need "12345".

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому +1

      @@naomipena6318 REGEXEXTRACT(A1,"\d+$")

    • @naomipena6318
      @naomipena6318 3 роки тому

      @@ExcelGoogleSheets Thank you!! It worked.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      great!

  • @omprakashthakur4515
    @omprakashthakur4515 2 роки тому

    kindly help me for the practice file. please🙏🙏

  • @DerTypHinnerDir
    @DerTypHinnerDir 7 років тому

    Please sort your playlist ;)

  • @edwarvi5541
    @edwarvi5541 3 роки тому

    how to find 3rd word with regex

  • @kaviascout
    @kaviascout 4 роки тому

    I don't know why, but it doesn't work! even the 1st example formula, the result is "Formula parse error." I have received this message even with a copy-paste in a google sheet of the goole guide support.google.com/docs/answer/3098244?hl=it, and I'm receiving anyway the same result: "Formula parse error." Does anyone have a suggestion?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 роки тому

      ua-cam.com/video/ljvB2arCsNQ/v-deo.html

    • @kaviascout
      @kaviascout 4 роки тому

      @@ExcelGoogleSheets Wow! god job! :D really thankful! sharp, fast, efficient!

  • @Electric-Bob
    @Electric-Bob 8 місяців тому

    Teacher... are you Retired now?

  • @lazalazarevic6192
    @lazalazarevic6192 6 років тому

    Character classes
    . any character except newline
    \w \d \s word, digit, whitespace
    \W \D \S not word, digit, whitespace
    [abc] any of a, b, or c
    [^abc] not a, b, or c
    [a-g] character between a & g
    Anchors
    ^abc$ start / end of the string
    \b \B word, not-word boundary
    Escaped characters
    \. \* \\ escaped special characters
    \t

    tab, linefeed, carriage return
    \u00A9 unicode escaped ©
    Groups & Lookaround
    (abc) capture group
    \1 backreference to group #1
    (?:abc) non-capturing group
    (?=abc) positive lookahead
    (?!abc) negative lookahead
    Quantifiers & Alternation
    a* a+ a? 0 or more, 1 or more, 0 or 1
    a{5} a{2,} exactly five, two or more
    a{1,3} between one & three
    a+? a{2,}? match as few as possible
    ab|cd match ab or cd