Regular Expression Match Formula in Excel (No VBA) - Regex System Part 1

preview_player
Показать описание
How to Make a Regular Expression Match or Search in Excel using a single Formula - this formula allows you to decide which characters are allowed, if they can be capital or lower-case, and much more and requires no VBA or Macros!

This tutorial shows you how to make a fully custom regular expression formula in Excel that requires no VBA or macro.

This forms part 1 of a 2 part series on how to make your own custom regex formulas for Excel and this part covers the special regex formula that allows you to check parts of a cell to ensure they contain only characters from an allowed set of characters.

Unfortunately, there is no standard regex function for Excel, so we are forced to create a custom version of it, and, though it lacks the power of those used in standard programming languages, the formulas covered here will allow you to perform some very specific pattern matching and data validation type checks to ensure that cells contain only what they are supposed to contain.

The setup that you will learn here includes more than just a formula, but a way of setting up your data and designing your worsksheet so that it makes it easier for you to develop your own custom regular expression formulas for Excel.

I hope you enjoy this tutorial!

#excel #tutorial #howto
Рекомендации по теме
Комментарии
Автор

And yes, there is Formula Deconstruction at the end for anyone curious enough ;) Part 2 comes out next week and will explain the rest of the setup in the spreadsheet and how to combine it all into the massive and complete pattern-recognition formula. I tried to make a single tutorial but you know, I talk a lot haha.

TeachExcel
Автор

My god... why don't they just add RegEx into

willhaney
Автор

A very detailed explanation. Very practical assembly with MID-ROW-INDIRECT-LEN to check items. Thank you very much!

IvanCortinas_ES
Автор

Loving These Formula Tutorials!!Great Formula, Really Well Explained Double Thumbs Up...Thank You Sir :)

darrylmorgan
Автор

I ran for the exit as soon as he showed that giant formula...

johntasz
Автор

I have a similar problem, but I don’t know what to do to solve it. I have a column in a dataset with the age class; for instance 10-15, 20-25 ecc. Obviously I’m not supposed to find a word or special character in that column other than the “-“ in the middle of the two age numbers. How can I set a formula for that, to eventually extract the errors? Thanks in advance

datascience