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

    講得非常清楚,感謝~

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

    um... legit magic. Appreciated

  • @StefanoVerugi
    @StefanoVerugi 7 ปีที่แล้ว +6

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

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

    Excellent tutorial, thanks for sharing

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

    Thank you so much this is extreamly helpful!

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

    great video thanks for sharing

  • @azenxgaming6628
    @azenxgaming6628 5 ปีที่แล้ว +1

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

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

    THankyou very much for your video, very very helpfulllll 😭

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

    Great as always!!

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

    Double Thumbs UPPPPPPPPP

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

  • @expert1989123
    @expert1989123 5 ปีที่แล้ว

    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.

  • @JoshuaDHarvey
    @JoshuaDHarvey 5 ปีที่แล้ว

    Great video, thank you!

  • @bulbulahmed3098
    @bulbulahmed3098 8 หลายเดือนก่อน

    ❤❤❤

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

    Thank you! :-)

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

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

  • @sonnymiles1724
    @sonnymiles1724 3 ปีที่แล้ว +1

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

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

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

  • @0xJericD_
    @0xJericD_ 2 ปีที่แล้ว

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

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

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

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

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

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

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

    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?

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

    match and replace to columns together google sheets text to columns

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

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

    🙏🏻

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

    Can you tell me how to remove any characters before colon

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

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

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

      Excel doesn't have REGEX functions, at least for now.

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

    kindly help me for the practice file. please🙏🙏

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

    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  2 ปีที่แล้ว

      Please provide an example

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

      @@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  2 ปีที่แล้ว +1

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

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

      @@ExcelGoogleSheets Thank you!! It worked.

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

      great!

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

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

    how to find 3rd word with regex

  • @DerTypHinnerDir
    @DerTypHinnerDir 6 ปีที่แล้ว

    Please sort your playlist ;)

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

      th-cam.com/video/ljvB2arCsNQ/w-d-xo.html

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

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

  • @Electric-Bob
    @Electric-Bob 7 หลายเดือนก่อน

    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