Master Excel with Regex! Download the workbook and cheat sheet here: pages.xelplus.com/regex-excel-file Note: These functions are rolling out gradually to Office 365 users, so check your version!
@@joerpersonHello joerperson, I have crafted the following regex for you: \b(\p{Lu}\p{Ll}+)\s((?:(?:\p{Lu}(?:\.?\s?)*)\s?)*)(\p{Lu}\p{Ll}+)\b And inside an EXCEL formule: =TOROW(IFERROR(REGEXEXTRACT(A2;"\b(\p{Lu}\p{Ll}+)\s((?:(?:\p{Lu}(?:\.?\s?)*)\s?)*)(\p{Lu}\p{Ll}+)\b";2;0);"")) (maybe you have to replace all ; with , for your region settings of Windows) This regex is looking for 2 words after each other with a capital begin letter and the rest lowercase letters. I have used \p{Lu} instead of [A-Z] and \p{Ll} instead of [a-z], so also names from other langues will be accepted, as long as that language supports capital and lowercase letters.
I have been wanting REGEX in Excel for forever. I'm retired now, but even so, I will still use it. Back when I was extracting addresses from spreadsheets for databases as a function of my job, this would have been an invaluable tool. AI, REGEX, and Excel. What a time to be alive!
Hello sir, Could you please let me know how have you been using REGEX in Excel so far? Did you build any custom VBA functions? Please share your knowledge, it would be very helpful for me.
@@ashokwwf At the moment I use Python to do it. Pandas library to open the Excel sheet, the re library to do the regex, and the appropriate database library depending on which database server you are using to write the results to the database. If I wanted to write them to the Excel sheet, then I would probably use xlwings to open and read the sheet, the other libraries like re to do whatever calculations I wanted, and xlwings to write the results back to the spreadsheet.
@@katrinabryce I use a simple VBA code to reverse parse this. Basically you dynamic export the parameters to create a full set library and then parse the result to get to the end product. You can also set the import function to do a modular call but its complicated. Once done, depending on our DBMS, we’ll initiate a connection using SQLAlchemy or a comparable ORM to handle the data persistence layer. If we’re looping back to Excel, xlwings will handle the I/O operations, ensuring data integrity while we execute our computation logic
This is a GREAT training video!!! Yesterday I got a dataset with 180k rows of data, in which I had to find all “year” numbers in the description column and group them by years. I was going to use filter function to get rid of rows without year information. Now I learned that I can simply use Regxxxx function to achieve my goal. Sincerely thank you ❤
Would be a great example to show/remove trailing space(s). They are very hard to find with the eye when debugging strange outcomes! Further excellent explanations, as ever.
Thanks for this video, it has helped me a lot, but I think I'm going to have to look for an Office key because it tells me that I have disabled functions.
Amazing. I wish this had existed 10 years ago as these examples are *exactly the kinds of things I would have to do regularly and figure out how to do with older functions or code. You explanations and lessons are very well put together. But this is the first one that I actually did download your very helpful lesson material. Thank you.
Before that I used nested FIND and LEFT and RIGHT and MID and these formulae were complex, all leveraging the pattern to build logical extraction tools around it. Now one function does it. Sweet
As always, you take not only a good an interesting object, but You also present it, so it´s to easy understand and use . That being said, I´m starting to be a little critic about MS and their promises of upgrading, it often takes about a year and a half from seeing new object to the actual rollout.
As a developer who needs to incorporate lots of product data into software tooling, I gravitate towards CSV and JSON instead of XLSX. The ability to integrate the data into the scripting language of my choice together with the unlimited capability to work with and display that data however I want on a web app or native app is an order of magnitude more powerful than what's possible with Excel or Power BI.
Clear explanations and step-by-step demonstrations made what seemed like a complex topic much more understandable and manageable.Thank you for your dedication to educating and empowering others in the realm of Excel functions.
I am glad to see regex in use. Eventhough i do not see that in action for a year or two. Since having unix background I have been using regexp for more than 30 years, so I welcome this. What I am a bit bored about are all ”new features” that cannot be used, as it is not part of regular distributions. Still waiting for instance to be able to start using the checkboxes. I would appreciate if early testers in their channels could remind the excel teams about taking presented features/functions into genaral releases. As said, before it is in general use, it is useless for business use.
I like this. Very helpful. I heard of REGEX 10 years ago and it freaked me out. This video and Victor Momoh's video have put me at ease to give this a serious look.
This just made my day! I lost weeks of work on new formulas because excel crashed yesterday. It also uses regex in office scripts. The rebuild can have this now and it will be way faster too.
oh muh goodness Leila! I don't know if you covered this before. Watching this video and seeing your use of the textjoin function. I decided to use this with the filter function. Using a V/Xlookup function to find a match but only finding one.... You can use the filter function to find many/more/all, but instead of spilling down, you can make a list. Thank you for the inspriation.
Thanks for this Leila. As an analyst who at times needs to mine large amounts of data that I extract into excel, this will be very useful and save a lot of time. Last year I spent several days mining names, codes and email addresses from a few million random comment records. I have techniques to do this however this would have been more efficient, both faster and easier.
been waiting for this since 2020. It is in VBA i think but blow my mind why this was never included from like since 20 years ago. Super useful tool. Anything with using text should come with it honestly. Still no python in excel for regular users!!!
Your explanation is very well appreciated and I am very keen to follow your all video update which is full of knowledge and guarantee to improve in the professional life. Thanks that we have access to your video subscription
This is very helpful. One part I found funny: you wrapped the text without leading zeroes inside VALUE. VALUE by itself on the original text would do the stripping and conversion 😅
Something I do once every couple of years is to create a hypertext linked version of a directory listing of files, starting with the standard output of the command dir / s > dirlist.txt This is then imported into Excel & I then have to systematically review the structure of the paths and separate out information like directory / file, file type, path, filename. Sometimes there is meta-data embedded in the path and file name that are helpful to provide fields that you can filter a long list. Each case has generally had some unique characteristics that mean you can't simply create a standard solution. Regex looks like it might simplify some of the analysis and parsing that I have to do.
Was using a combination of FIND, MID, LEN and some more. This is definitely easier. Next is finding a way to have Excel conclude on the nature of a transaction after doing several of these evaluations. Nesting IF statements has its limitations. Thanks for sharing. Now we wait patiently until it is available 😊
Learned a lot, taking out leading zeroes is however easier with type conversion, =A1+0, probably even if it then needs to be converted back to string (&"").
Thank you Leila, It's really cool to have the regex functions in Excel now and you have done great job in explaining them in the best way as usual. 🙂 Hoping to see more "REGular" videos from you, so I can "EXpress" better and better! 😁
At 15:00 I personally find it a lot easier to simply multiply by 1. This deletes all the leading zero's and makes it a value. However, this is only possible if there is no other text.
Leila, a question. At timestamp 14:31-Split Combined Words in Excel, what if you had a name like TommyMcDonald and wanted the result of Tommy McDonald. How would you modify the expression?
It's so nice to see regex FINALLY supported in Excel! Your presentation was very good, especially in regards to how Excel handles multiple matches -- even as a longtime regex user, I wasn't sure how to deal with that in Excel. I have a couple of suggestions, too: First, you pointed out the "groups" within the pattern when showing how to break up dates into components, but I don't think you were clear enough about how those groups are defined. Second, I think using regex to remove leading zeroes is overkill (at least with the examples you used) since Excel does that by default anyway -- just convert the cell to a number and voilà. I suppose it would be useful if the product number contained any alpha chracters. . Anyway -- great video.
Hi! Leila I hope you can answer this question? For the pivot table. Why is the amount in the "Value" field different than if you put it in the row field?
It would be great if this could be used for conditional formatting so certain text within a cell could be modified in a different color or highlighted.
Whoa! ... Leila on Wednesday? ... a surprise ... a very pleasant surprise! Regex appears to be a very powerful function ... I will be a student for quite awhile before I can 'solo' with this function. But I was formulating several ideas during Prof Leila's flawless presentation. Thank you ... thank you ... thank you ... 😍😍😍
Excellent share thanks! In tab 3 you have dragged down the same formula in C2:C11 so it only works at the row level and outputs at the row level. Here is a single cell version of the same formula that processes the entire B2:B11 range at once and outputs a dynamic array from C2:E11 with one single formula: =LET( dates, BYROW(B2:B11, LAMBDA(row, TEXTJOIN("-", TRUE, IFNA(REGEXEXTRACT(row, "(\d{4})-(\d{1,2})-(\d{1,2})"), {"","",""})))), splitDates, TEXTSPLIT(TEXTJOIN("-", TRUE, dates), "-"), INDEX(splitDates, SEQUENCE(ROWS(B2:B11), 3)) ) Similarly in tab 7 you can use the following single cell formula in C2: =BYROW(B2:B11, LAMBDA(row, TEXTJOIN(" ", TRUE, REGEXEXTRACT(row, "([A-Z][a-z]+)", 1)))) and the following single cell formula in B2 in tab 10: =REGEXREPLACE(A2:A6,"(.{4})(?=.{4})","$1-")
Hello Sir, Thank you for your useful videos on dax. Sir, when to combine ALL function with Calculate + Filter Function together in Dax ? Could you please make a video of it in detail soon 🙏
Hi Leila, I have a question regarding the leading zeros. Why should we use the regexreplace on leading zeros? If we just used the value function it would have the same effect. Easier to understand and consuming less of the CPU. Regarding this.. Most of these examples can be also done using UDFs but having a "official" formula for it may be a lighter solution. Congratulations for the video.
Sweet! Thanks for the tips. I used to use it in sheets and was bummed when I went to a company that blocks sheets. Side note: The variation in REGEX pronunciation is kind of like GIF, hotly debated. Although it stands for Regular Expression, many people (myself included) pronounce it with a "J". This is due to the standard rule saying that if a g is followed by an e, i, or y, it's a soft g and says /j/ like "giraffe". But others stand firmly by "It stands for reGular expression so it's G like girl"
17:26 This is good stuff - I was hoping that you’d have an example of how to “un1337” the text, so the $ would resolve to an S, and we would get the intended “Version” instead of “Verion“ on row 3.
Interesting, very interesting. Even as a home/hobby Excel user i can see me using this. 😀 I know nothing about REGEX, I had hard of but never seen it. Your explanations was enough as get me started in seeing the patterns of how it works. 😀 Once it’s available to the average user this is going to be worth the learning more about.😀
yeeeee!!!!!! Finally I can remove the morefunc library from my pc and can install excel 64 bit!!!! I have been waiting for this moment for almost 15 years 🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳
Hi, been searching for excel gods in youtube and by far you are the best! Can you help me direct what functions do I use in my scenario. I have multiple entry forms to be filled out by different departments (data collection stage). Once filled up, I copy and paste it on my masterlist. Any suggestions on what function I use so that the multiple entry forms autopopulate my masterlist in a chronological order. Dept.A and Dept. B, etc can do different task on the same day, meaning on my masterlist I manually sort the task by date (using the Sort & filter). And to top it all of, once data is entered in the master list, it has a unique transaction code which sometimes gets broken when some departments submit late and antidated reports. Any leads on this on what functions I may use to dynamically auto populate my masterlist based on the data across multiple entry forms in Chronological Order. Thank you soo much.
I have been waiting for this day, had to watch this vid, i currently use python to use regex now it’s local to excel so distributing reports are now easier
Ehehehe, excellent time saving useful Excel formula turned into an very useful function. Thanks. for the introduction and teaching the new function. The function does seem to have a few glitches here and there, but with a few tweaks here and there the function does seem to work quite fine! 👌🥰✨💎
10:06 I wonder why \d is used for matching a digit, instead of [0-9]. {4} means exactly 4 characters, in this case digits. {1,2} means one or two characters. This whole regular expressions means: 4 digits, a hyphen, one or two digits, a hyphen, and again one or two digits.
Hi Leila, I'm being watching your videos and learning. I am a beginner and I love excel. My excel knowledge has gone down drastically due to lack of practise and in my work we don't use excel too much. Just for the basic needs! I have an interesting scenario where we maintain data for all incidents and track those incidents and close them before the deadline. All open incidents are treated based on he days open like if an incident is above 25 days that needs attention. So the chart I created needs a conditional formatting but the challenge is I use the filter function to retrieve all open incidents based on status =open. I have divided the chart is 3 categories like 1015 days. But I am unable to create a dynamic chart with those fields and I ending up nowhere. Do you have a solution for this ? My dataset would be (Header = Events, Day15 and above, Day 10 and
Hi @LeilaGharani, @min 5:40, what if the 2nd email address to be inserted in a new line underneath, and Project data to be in the new line too (Aloha Beta in this case), also considering the rest down data to be all shifted down .. Thanks.
I see why Microsoft didn't introduce REGEX until after they came out with CoPilot! I have a programming background, and even for me, having to construct one of those "regular expressions" on my own would be sufficiently daunting that I wouldn't consider it worth the effort unless I had a very large amount of data to process or had to parse text like this frequently. Even just trying to modify or debug one looks pretty challenging. At least with AI on hand to provide the regular expressions, REGEX becomes accessible. Still, I suspect anyone who doesn't spend a lot of time writing Excel formulas will just shake his head at this and move on. You did a terrific job explaining and demonstrating it, though.
Great video. I would put this into the cool and necessary but still half-baked category. Hopefully it will improve. If we need to go out and find REGEX patterns, add additional functions to control spill direction, etc. it's still clunky in 2024 and the age of AI.
Thanks for the update. Wish there was an easier way to find the expressions than using AI to find the expression. Like pre-saved expressions in separate formula arguments.
Hello Leila. Thanks so much for your wonderful tutorials. I am using Excel 365, however, I can't find the Regex functions. When will Microsoft release them?
Unix has had this for many, many decades as grep. Still no function to retrieve maximum magnitude of a list of positive and negative numbers though. (E.g. if you're given force data with Left as -ve and Right as +ve, you often just wanted to know what the maximum lateral force is)
Ms. Leila Is there any option in Regex function to extract year as it is and convert the remaining hours into year it falls. For example: 01-Nov-2024 in one cell and another 1000 Hrs. If the frequency is 800Hrs when will be the next cycle for 1000Hrs in Year with month and date?
It's great news, something that should have been there for so long. I used vba in the past to create my regex function, but there are always limitations to vba...
Thanks for the fantastic video! In your examples for extracting dates, how might the approach change if dates are listed differently across rows, e.g., 2024-5-22, 24-05-22, 22/5/2024, and 22-May-24?
Master Excel with Regex! Download the workbook and cheat sheet here: pages.xelplus.com/regex-excel-file
Note: These functions are rolling out gradually to Office 365 users, so check your version!
Can I use this function to extract first name, middle initial, and last name from a range where not all records have a middle initial?
Thanks so much Leila.
Must be in Excel online.
Pass.
@@joerpersonHello joerperson,
I have crafted the following regex for you:
\b(\p{Lu}\p{Ll}+)\s((?:(?:\p{Lu}(?:\.?\s?)*)\s?)*)(\p{Lu}\p{Ll}+)\b
And inside an EXCEL formule:
=TOROW(IFERROR(REGEXEXTRACT(A2;"\b(\p{Lu}\p{Ll}+)\s((?:(?:\p{Lu}(?:\.?\s?)*)\s?)*)(\p{Lu}\p{Ll}+)\b";2;0);""))
(maybe you have to replace all ; with , for your region settings of Windows)
This regex is looking for 2 words after each other with a capital begin letter and the rest lowercase letters.
I have used \p{Lu} instead of [A-Z] and \p{Ll} instead of [a-z], so also names from other langues will be accepted, as long as that language supports capital and lowercase letters.
Will this be available on home and student version?
I have been wanting REGEX in Excel for forever. I'm retired now, but even so, I will still use it. Back when I was extracting addresses from spreadsheets for databases as a function of my job, this would have been an invaluable tool. AI, REGEX, and Excel. What a time to be alive!
Hello sir, Could you please let me know how have you been using REGEX in Excel so far? Did you build any custom VBA functions? Please share your knowledge, it would be very helpful for me.
@@ashokwwf At the moment I use Python to do it.
Pandas library to open the Excel sheet, the re library to do the regex, and the appropriate database library depending on which database server you are using to write the results to the database.
If I wanted to write them to the Excel sheet, then I would probably use xlwings to open and read the sheet, the other libraries like re to do whatever calculations I wanted, and xlwings to write the results back to the spreadsheet.
Finally REGEX came to Excel! I'm using an addin on Excel but I can't use the addin's REGEX inside LAMBDA(), having it natively will help A LOT.
I have been waiting for the same for the last 10 years. I have been using this feature in VBA.
@@katrinabryce I use a simple VBA code to reverse parse this. Basically you dynamic export the parameters to create a full set library and then parse the result to get to the end product. You can also set the import function to do a modular call but its complicated. Once done, depending on our DBMS, we’ll initiate a connection using SQLAlchemy or a comparable ORM to handle the data persistence layer. If we’re looping back to Excel, xlwings will handle the I/O operations, ensuring data integrity while we execute our computation logic
This is a GREAT training video!!! Yesterday I got a dataset with 180k rows of data, in which I had to find all “year” numbers in the description column and group them by years. I was going to use filter function to get rid of rows without year information. Now I learned that I can simply use Regxxxx function to achieve my goal. Sincerely thank you ❤
Glad you found something helpful!
Would be a great example to show/remove trailing space(s). They are very hard to find with the eye when debugging strange outcomes! Further excellent explanations, as ever.
Thanks for this video, it has helped me a lot, but I think I'm going to have to look for an Office key because it tells me that I have disabled functions.
BNH Software helped me with my Office key and since then my Excel works without any problem.
You're the best for keeping us apprised of all of these new functions. Thank you for all your hard work for our benefit.
Love the Feedback text on Tab 5. Great examples AND a sense of humor.
Amazing. I wish this had existed 10 years ago as these examples are *exactly the kinds of things I would have to do regularly and figure out how to do with older functions or code. You explanations and lessons are very well put together. But this is the first one that I actually did download your very helpful lesson material. Thank you.
I think the purpose of developing this function was to convert the Flash fill static structure into dynamic.
It is super handy and useful.
Thank you
I had to write complicated VBA functions to use the regex libraries before. This is a game changer
Before that I used nested FIND and LEFT and RIGHT and MID and these formulae were complex, all leveraging the pattern to build logical extraction tools around it. Now one function does it. Sweet
Finally Regex in Excel, Thank you lord and thank you lelia as always you have the most valuable and up-to-date content.
As always, you take not only a good an interesting object, but You also present it, so it´s to easy understand and use .
That being said, I´m starting to be a little critic about MS and their promises of upgrading, it often takes about a year and a half from seeing new object to the actual rollout.
Yes, it is probably a good idea to look back at the videos on this channel from about 2 years ago for tips that you can actually implement today.
Exactly my point
As a developer who needs to incorporate lots of product data into software tooling, I gravitate towards CSV and JSON instead of XLSX. The ability to integrate the data into the scripting language of my choice together with the unlimited capability to work with and display that data however I want on a web app or native app is an order of magnitude more powerful than what's possible with Excel or Power BI.
Clear explanations and step-by-step demonstrations made what seemed like a complex topic much more understandable and manageable.Thank you for your dedication to educating and empowering others in the realm of Excel functions.
Many thanks for the kind feedback!
Oh, so many workarounds, and now REGEX is here. I can't wait for it to be available to most users. Thank you so much for the overview.
You're very welcome!
I am glad to see regex in use. Eventhough i do not see that in action for a year or two. Since having unix background I have been using regexp for more than 30 years, so I welcome this.
What I am a bit bored about are all ”new features” that cannot be used, as it is not part of regular distributions. Still waiting for instance to be able to start using the checkboxes. I would appreciate if early testers in their channels could remind the excel teams about taking presented features/functions into genaral releases. As said, before it is in general use, it is useless for business use.
I know - the update schedule can be too long depending on your settings. If your tenant is set to semi annual then you really need to wait long….
I like this. Very helpful.
I heard of REGEX 10 years ago and it freaked me out. This video and Victor Momoh's video have put me at ease to give this a serious look.
This just made my day! I lost weeks of work on new formulas because excel crashed yesterday. It also uses regex in office scripts. The rebuild can have this now and it will be way faster too.
Yay! Let‘s hope it gets rolled out soon.
I love that you start with examples. Thank you!
The majority of my excel knowledge I've learned from your videos. Thank you so much. I play with excel for fun and love trying the learning your tips!
Great to hear! Thanks for tuning in.
oh muh goodness Leila! I don't know if you covered this before. Watching this video and seeing your use of the textjoin function. I decided to use this with the filter function. Using a V/Xlookup function to find a match but only finding one.... You can use the filter function to find many/more/all, but instead of spilling down, you can make a list. Thank you for the inspriation.
Thanks for this Leila. As an analyst who at times needs to mine large amounts of data that I extract into excel, this will be very useful and save a lot of time. Last year I spent several days mining names, codes and email addresses from a few million random comment records. I have techniques to do this however this would have been more efficient, both faster and easier.
That's a great use case for Regex. 😊
yeah! - RegEx is finally here!! thanks for your quick tour Leila! this is just awesome!
Thanks, you're changing the world with that. Nice work and clear explanations as always. 💚
been waiting for this since 2020. It is in VBA i think but blow my mind why this was never included from like since 20 years ago. Super useful tool. Anything with using text should come with it honestly. Still no python in excel for regular users!!!
Yeah, Python is still in Beta. It's been some time already. 🙄
Great insight. How much I missed these functions in good old days. Anyway, better late than never. Thanks a ton for this info.
Your explanation is very well appreciated and I am very keen to follow your all video update which is full of knowledge and guarantee to improve in the professional life. Thanks that we have access to your video subscription
Thanks Leila! Tutorial on BREAKING up the combined words in Excel using Regextract is actually not BAD..
Haha!!! I see what you did there!!! 😉
I like want I'm seeing and I like the you sell the idea first before getting into the details.
This is very helpful.
One part I found funny: you wrapped the text without leading zeroes inside VALUE. VALUE by itself on the original text would do the stripping and conversion 😅
Something I do once every couple of years is to create a hypertext linked version of a directory listing of files, starting with the standard output of the command dir / s > dirlist.txt This is then imported into Excel & I then have to systematically review the structure of the paths and separate out information like directory / file, file type, path, filename. Sometimes there is meta-data embedded in the path and file name that are helpful to provide fields that you can filter a long list. Each case has generally had some unique characteristics that mean you can't simply create a standard solution. Regex looks like it might simplify some of the analysis and parsing that I have to do.
Was using a combination of FIND, MID, LEN and some more. This is definitely easier.
Next is finding a way to have Excel conclude on the nature of a transaction after doing several of these evaluations. Nesting IF statements has its limitations.
Thanks for sharing. Now we wait patiently until it is available 😊
Hi Leila, Nice video, just a note you CAN tell it to extract email addresses, you can use name manager :)
Learned a lot, taking out leading zeroes is however easier with type conversion, =A1+0, probably even if it then needs to be converted back to string (&"").
Nice to see MS bringing what used to be a VBA only function for Excel out of the code abyss.
Indeed!
Incredible. I can’t think of any document where this would not be useful. Awesome.
Thank you Leila, It's really cool to have the regex functions in Excel now and you have done great job in explaining them in the best way as usual. 🙂 Hoping to see more "REGular" videos from you, so I can "EXpress" better and better! 😁
Thank you so much, Vijay! There will be more. 😊
At 15:00 I personally find it a lot easier to simply multiply by 1. This deletes all the leading zero's and makes it a value.
However, this is only possible if there is no other text.
👍
Leila, a question. At timestamp 14:31-Split Combined Words in Excel, what if you had a name like TommyMcDonald and wanted the result of Tommy McDonald. How would you modify the expression?
Thanks!
Thank you!
Thank you Leila for your continuous effort and support
It's so nice to see regex FINALLY supported in Excel! Your presentation was very good, especially in regards to how Excel handles multiple matches -- even as a longtime regex user, I wasn't sure how to deal with that in Excel. I have a couple of suggestions, too: First, you pointed out the "groups" within the pattern when showing how to break up dates into components, but I don't think you were clear enough about how those groups are defined. Second, I think using regex to remove leading zeroes is overkill (at least with the examples you used) since Excel does that by default anyway -- just convert the cell to a number and voilà. I suppose it would be useful if the product number contained any alpha chracters. . Anyway -- great video.
Many thanks for your feedback!
Amazing! I have needed this so much in my apparel analysis where so much info is unstructured text. 🤩
Hi! Leila I hope you can answer this question? For the pivot table. Why is the amount in the "Value" field different than if you put it in the row field?
It would be great if this could be used for conditional formatting so certain text within a cell could be modified in a different color or highlighted.
Whoa! ... Leila on Wednesday? ... a surprise ... a very pleasant surprise!
Regex appears to be a very powerful function ... I will be a student for quite awhile before I can 'solo' with this function. But I was formulating several ideas during Prof Leila's flawless presentation.
Thank you ... thank you ... thank you ... 😍😍😍
It was excellent but I noticed a flaw. At about 16:40 when replacing special characters, the $ in Ver$ion was deleted and not replaced by an s.
Yeah, I got too excited and I didn't want to sit on it for another day. 😁
As always, thanks for tuning in!
I love the way that u explain and everything can you please do a video about visual basics?
Excellent share thanks!
In tab 3 you have dragged down the same formula in C2:C11 so it only works at the row level and outputs at the row level. Here is a single cell version of the same formula that processes the entire B2:B11 range at once and outputs a dynamic array from C2:E11 with one single formula:
=LET(
dates, BYROW(B2:B11, LAMBDA(row, TEXTJOIN("-", TRUE, IFNA(REGEXEXTRACT(row, "(\d{4})-(\d{1,2})-(\d{1,2})"), {"","",""})))),
splitDates, TEXTSPLIT(TEXTJOIN("-", TRUE, dates), "-"),
INDEX(splitDates, SEQUENCE(ROWS(B2:B11), 3))
)
Similarly in tab 7 you can use the following single cell formula in C2:
=BYROW(B2:B11, LAMBDA(row, TEXTJOIN(" ", TRUE, REGEXEXTRACT(row, "([A-Z][a-z]+)", 1))))
and the following single cell formula in B2 in tab 10:
=REGEXREPLACE(A2:A6,"(.{4})(?=.{4})","$1-")
Oh that is so cool! Thanks Leila and thanks @mochan8447
Hello Sir,
Thank you for your useful videos on dax.
Sir, when to combine ALL function with Calculate + Filter Function together in Dax ?
Could you please make a video of it in detail soon 🙏
QUITE SIMPLE! Thank you for sharing this with us. ❤
You are so welcome!
Absolutely brilliant function. Thank you, Leila, for the video. This one will save me lots of time... when I get it.
Thanks for sharing this Leila! It looks awesome! Can't wait for this new feature. I wish it was already out.
Hi Leila,
I have a question regarding the leading zeros. Why should we use the regexreplace on leading zeros? If we just used the value function it would have the same effect. Easier to understand and consuming less of the CPU.
Regarding this.. Most of these examples can be also done using UDFs but having a "official" formula for it may be a lighter solution. Congratulations for the video.
I don't have this function yet, and I really need it today. Great tutorial.
This is amazing. I have a few ideas where this will save me so much time. Great video as always.
Glad you enjoyed it!
Tolle Hilfen - ich bin schon sehr gespannt, wann es verfügbar sein wird; und danke wie immer für das tolle Video
Sweet! Thanks for the tips. I used to use it in sheets and was bummed when I went to a company that blocks sheets.
Side note: The variation in REGEX pronunciation is kind of like GIF, hotly debated. Although it stands for Regular Expression, many people (myself included) pronounce it with a "J". This is due to the standard rule saying that if a g is followed by an e, i, or y, it's a soft g and says /j/ like "giraffe". But others stand firmly by "It stands for reGular expression so it's G like girl"
Interesting. Thanks for sharing!
I've never heard it with a hard G sound before and was wondering if it's a regional pronunciation.
gif=graphics, regex=regular. simple, no j's anywhere.
17:26 This is good stuff - I was hoping that you’d have an example of how to “un1337” the text, so the $ would resolve to an S, and we would get the intended “Version” instead of “Verion“ on row 3.
Interesting, very interesting. Even as a home/hobby Excel user i can see me using this. 😀 I know nothing about REGEX, I had hard of but never seen it. Your explanations was enough as get me started in seeing the patterns of how it works. 😀 Once it’s available to the average user this is going to be worth the learning more about.😀
About time Excel jntrodued These. The Cheat Sheet is valuable but a video on actually writing the code would be helpful. Thanks.
Sure thing. Once Microsoft rolls this out, we'll prepare something.
yeeeee!!!!!!
Finally I can remove the morefunc library from my pc and can install excel 64 bit!!!!
I have been waiting for this moment for almost 15 years
🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳
Hi, thank you for sharing this! I couldn’t find this in ms excel ms 365 though like you’re using in the excel so easily
Hi, been searching for excel gods in youtube and by far you are the best! Can you help me direct what functions do I use in my scenario. I have multiple entry forms to be filled out by different departments (data collection stage). Once filled up, I copy and paste it on my masterlist. Any suggestions on what function I use so that the multiple entry forms autopopulate my masterlist in a chronological order. Dept.A and Dept. B, etc can do different task on the same day, meaning on my masterlist I manually sort the task by date (using the Sort & filter). And to top it all of, once data is entered in the master list, it has a unique transaction code which sometimes gets broken when some departments submit late and antidated reports.
Any leads on this on what functions I may use to dynamically auto populate my masterlist based on the data across multiple entry forms in Chronological Order. Thank you soo much.
Having to play with Regex in C and C++ was fun but here it looks easy ;)
I have been waiting for this day, had to watch this vid, i currently use python to use regex now it’s local to excel so distributing reports are now easier
Ehehehe, excellent time saving useful Excel formula turned into an very useful function. Thanks. for the introduction and teaching the new function. The function does seem to have a few glitches here and there, but with a few tweaks here and there the function does seem to work quite fine! 👌🥰✨💎
Excel ecosystem is finally catching up to command-line scripting (Linux etc...) which allowed us to do this decades ago.
16:56 Question: What if you did want to keep the version as "1.2.3" and not "123" in row 3 for Product Code "P002" for the junk replacement?
Thanks.
Thank you for the video and the practice file both are and will extremely helpful!😁👍
Glad to hear it!
Amazing and concise explanation!
Simply brilliant. I was going to suggest using AI as Regex patterns can be tricky.
10:06 I wonder why \d is used for matching a digit, instead of [0-9]. {4} means exactly 4 characters, in this case digits. {1,2} means one or two characters. This whole regular expressions means: 4 digits, a hyphen, one or two digits, a hyphen, and again one or two digits.
Hi Leila, I'm being watching your videos and learning. I am a beginner and I love excel. My excel knowledge has gone down drastically due to lack of practise and in my work we don't use excel too much. Just for the basic needs! I have an interesting scenario where we maintain data for all incidents and track those incidents and close them before the deadline. All open incidents are treated based on he days open like if an incident is above 25 days that needs attention. So the chart I created needs a conditional formatting but the challenge is I use the filter function to retrieve all open incidents based on status =open. I have divided the chart is 3 categories like 1015 days. But I am unable to create a dynamic chart with those fields and I ending up nowhere. Do you have a solution for this ? My dataset would be (Header = Events, Day15 and above, Day 10 and
It was such a headache to do regex extraction via VBA or Power Query routes. What a wonderful addition.
Hello Mam,
When to combine ALL function with Calculate + Filter function in DAX ?
Could you make a video of this please ❤
I think this is going to be hugely helpful for categorization of bank data in a 13 week cash flow forecast.
Thank you so much this is awesome! Plus all the other formula keywords I didn’t know existed like TOROW!
Hi @LeilaGharani, @min 5:40, what if the 2nd email address to be inserted in a new line underneath, and Project data to be in the new line too (Aloha Beta in this case), also considering the rest down data to be all shifted down .. Thanks.
Thanks for a very informative session .
Most welcome!
I see why Microsoft didn't introduce REGEX until after they came out with CoPilot! I have a programming background, and even for me, having to construct one of those "regular expressions" on my own would be sufficiently daunting that I wouldn't consider it worth the effort unless I had a very large amount of data to process or had to parse text like this frequently. Even just trying to modify or debug one looks pretty challenging. At least with AI on hand to provide the regular expressions, REGEX becomes accessible. Still, I suspect anyone who doesn't spend a lot of time writing Excel formulas will just shake his head at this and move on. You did a terrific job explaining and demonstrating it, though.
Hey Liela, can U plx make a beginner course on "Microsoft Access" please ASAP. Also please add some advance functions as well.
Should have been available for the last few decades. Not like RegEX is new.
Great work Leila thank you for sharing your knowledge.
Glad it was helpful!
Great video. I would put this into the cool and necessary but still half-baked category. Hopefully it will improve. If we need to go out and find REGEX patterns, add additional functions to control spill direction, etc. it's still clunky in 2024 and the age of AI.
Thanks! Given that this is still in Beta I do expect some improvements going forward.
Finally, I get to regex that stage 5 clinger from my life!
Thanks for the update. Wish there was an easier way to find the expressions than using AI to find the expression. Like pre-saved expressions in separate formula arguments.
Hello Leila. Thanks so much for your wonderful tutorials. I am using Excel 365, however, I can't find the Regex functions. When will Microsoft release them?
Currently they're still in beta in Office Insiders. Unfortunately, Microsoft does not issue fixed release dates for their new features.
Unix has had this for many, many decades as grep.
Still no function to retrieve maximum magnitude of a list of positive and negative numbers though.
(E.g. if you're given force data with Left as -ve and Right as +ve, you often just wanted to know what the maximum lateral force is)
This is exactly what I need! I do hope I have the feature already! 😀
Ms. Leila
Is there any option in Regex function to extract year as it is and convert the remaining hours into year it falls.
For example: 01-Nov-2024 in one cell and another 1000 Hrs. If the frequency is 800Hrs when will be the next cycle for 1000Hrs in Year with month and date?
It is great to finally have this in excel! Thanks for the video!
I have seen many of your course ,each one is excerllent!
It's great news, something that should have been there for so long. I used vba in the past to create my regex function, but there are always limitations to vba...
Thanks for the fantastic video! In your examples for extracting dates, how might the approach change if dates are listed differently across rows, e.g., 2024-5-22, 24-05-22, 22/5/2024, and 22-May-24?
\b(?:(?:\d{2})?\d{2}[-/](?:0?[1-9]|1[0-2]|January|February|March|April|May|June|July|August|September|October|November|December)[-/](?:0?[1-9]|[12][0-9]|3[01])|(?:0?[1-9]|[12][0-9]|3[01])[-/](?:0?[1-9]|1[0-2]|January|February|March|April|May|June|July|August|September|October|November|December)[-/](?:\d{2})?\d{2})\b
Will you make video showing hands-on on Copilot in Excel, and give your opinion?
Thank you for the suggestion! I've been using it for a couple of weeks. Will share my thoughts after some more testing.
It'll be helpful to use this for giving rid of leading zeroes especially, for me
Amazing stuff. Amazing Teacher!! You ROCK Leila!! 👊🏼👊🏼👍🏼👍🏼
I wanna change my profession and unfortunately I think I won't use Excel anymore, I have learned to enjoy it, I'll miss it
oh no....
Thank you for this. I hope this will be available to the public very soon.
If I understood correctly, you can also extract all text except the brackets and whats inbetween them. How would I do that?