You can combine REGEXMATCH and AND functions to solve this problem. I want to extract all snacks that contain the word ‘Chips’. Among the three REGEX functions, I’ve already explained the use of REGEXEXTRACT. It’s the same principle as the first example in this section, but we’ve just simply changed our regular expression. To get the first letter or even a set of characters at the start of a sentence, we use the ^ regular expression. Google Apps Script lets you do new and cool things with Google Sheets. To sum cell values in a column if another column cells contain a part of specific text string as following screenshot shown, this article will introduce some useful formula to solve this task in Google sheets. You can identify strings that contain numbers. It also lets you write custom functions for Sheets, as well as integrate Sheets with other Google services like Calendar, Drive, and Gmail.. Step 2 –  =REGEXMATCH(text, regular_expression). Yep, you can combine REGEX and other functions. “\b” is called a word boundary and prevents matching any word that shares the same sequence of letters. In this example, I want to match all strings that reference “Download” and “download”. The subfolder URLs have historical data you don’t want to discount, so you need to identify patterns to help categorise them. VLOOKUP with a single wildcard Imagine we have this table of employee information and we’ve been given a partial name (in this example: “Mye“) to find and retrieve information about. I like to make sure comments are as valuable as possible for you, the reader, and for myself as a reference. In Google Sheets, the MATCH function gives you the relative position of an item within a range of cells. Want a solid step-by-step course to become a pro at Google Sheets? But what if you want to exclude certain text that may still match against your multiple words formula? It's competitively priced and takes an eco-friendly approach to web hosting. “Love” has the boundary \b expressions on either side to ensure we are looking for a word. How to sumif cells if contains part of text string in Goolge sheets? Just think “d” for digit. We started looking at the text found in cell A2. Basically, we are looking for the existence of a number anywhere in the text. Likewise, “Love” can be anywhere in front of “You” in the text. ... Also, checkout the directory of Google Sheets templates to help you automate other SEO tasks. Let’s say I want to match strings that contain “summer” “red” and “dress”. Next, we will add our .*? The LOWER function converts the text to lowercase, which allows me to match for both “Download” and “download”. Case sensitivity matters when using REGEX in Google Sheets, but there are workarounds. Click on the image to find out more: © 2017-new Date() Attempting to use a LOOKUP with an Importrange tab on Google Sheets to make sure values across two sheets are correct, but I keep getting errors This is the sheet I am working on. Enter your email address to subscribe to this blog and receive notifications of new posts by email. We also went over nine examples that you will most likely find useful in your day-to-day. Google Ads scripts often need to work with dates and times. Google sheet function not recognized by excel -> Dummy functions I have a checklist for my designers which contains records of Technical drawing checks. Imagine if you had a column of days of the week – one on each row on cell A1:A7. Standard Excel and Google Sheet formulas and filters can be limited, awkward and painfully slow to respond, especially if you’re working with big data sets. It tells Google Sheets the function you want to use. This means that we are looking for text that contains “You” and “Love” somewhere in the text OR (|) “Love” and “You”. The FILTER function allows us to look through each row of the range we have selected. I’m a huge fan of Justin Mares, Mastering Google Sheets course. The 3 main Regex formulas you can use on Google Sheets are: REGEXEXTRACT. Don’t worry if you can’t remember them, just bookmark this post and come back. If you decide to click on one of these links it will cost you just the same as going to the site. Just a heads up, I’m going to keep adding REGEXMATCH examples to this guide whenever I find really useful examples, so be sure to keep up to date! We use cookies to ensure that we give you the best experience on our website. Your end result in Google Sheets should end up like this: To achieve a count of how many cells in our column contain a certain value we will be using COUNTIF, ARRAYFORMULA and REGEXMATCH. So now, we can safely set the REGEXMATCH formula to a range and it will apply the function to each cell in the range.eval(ez_write_tag([[300,600],'yagisanatode_com-banner-1','ezslot_2',113,'0','0'])); =ARRAYFORMULA(REGEXMATCH(text cell range, regular expression)). singular and plural keywords hold different intent. You’ll notice that the formula returned both FALSE and TRUE. REGEXMATCH across multiple worksheets in Google Sheets. =IF(RegExMatch(C5,"Chicago Bears"), IMPORTRANGE("example URL","Bears!A16:B18"), If they choose 'Chicago Bears' then it pulls players from another sheet. Active today. But not with REGEXMATCH and Google Sheets. This post features 8 examples that will make your life infinitely easier as a digital marketer, showing how to use REGEXMATCH in Google Sheets GIF by GIF. The ARRAYFORMULA iterates its containing formulas over a selected range. Our goal is to list and count any song on the list that contains certain parameters. To accomplish our goal, we have some options we could consider. Here we are going to use Google Sheet’s FILTER and REGEXMATCH functions. That’s right, I’m all about learning tools to make my life easier and lately Regex is my favourite. This means that when we apply our REGEXMATCH inside FILTER, we can give REGEXMATCH a range to search for instead of a single cell. Like you, I have a busy life, but I will be sure to get back to you should your comment add value to the post. Google Sheets Example + Template. In our above example, we can see that the old URLs end in a trailing slash, but the new URLs don’t. To do this we use the \d regular expressions. In our example, we just want to filter a single column based on a match of our regular expression. It identifies the start or end of a word. Thanks a lot for this resource. There are 3 … It will iterate through each cell in the range completing the match for each. Finally, we want any number of non-space characters to be the last thing in the cell or line. The syntax you’ll always need to use when writing a REGEXMATCH formula: This will become clearer as we work our way through the examples. REGEXMATCH functions can be a lifesaver when you want to match and categorise words, numbers or symbols. For example, to … Or you could make a copy of the file for an interactive version: Counting and Filtering Data Where Data Contains Certain Values. Udemy has some professional courses that will turn you into an admin ninja! On my form there is a question stating price impact, which is a yes or no question. Imagine that you have a list of full names, and you want to use Google Sheets to create a new list of full names that only contain John. Other two REGEX functions are REGEXMATCH and REGEXREPLACE. The GOOGLEFINANCE function in Google Sheets is a really convenient tool that fetches currency conversion rates in real-time (well almost in real-time). The syntax is similar to example 1, but with one main difference. It returns TRUE if a text string matches a regular expression and FALSE otherwise. That’s how we all learn. Here is a summary you can use for quick reference: . You can see in the GIF that “best red dress for summer” returns FALSE. Enter your email address to subscribe to this blog and receive notifications on Google Sheets, Google Apps Script and Python new posts by email. Please don’t be disheartened by the delay. We’re telling Google Sheets to match strings that contain “summer” AND “red” AND “dress”. =filter (A1:D, regexmatch (A1:A, "Oil")) 2. /mens/jackets/, some websites might move everything straight to the root e.g. First, we will add the dash and two spaces either side of the character. The text is … Before we get started, here is a basic example. You will need to add a new string of RegExMatch for each bet you want to add. Our COUNTIF function will take the REGEXMATCH function contained the ARRAYFORMULA as its first range parameter. Any text you put into your regular expression is case-sensitive unless you deem it otherwise. Let’s say I only want to match strings that contain “men”, or “mens”. Before we start highlighting any rows, you should know where to find the checkbox option in Google Sheets. \b is an ASCII word boundary regular expression. How would I do that. I promise to give you some clear examples with an explanation of each to you can apply it to your project. 17:13. Google Sheets REGEX functions are pure text functions. For our example, our COUNTIF range would be the snack column and the condition would be our regular expression. So, you can perform the following steps: Select the cell you want to get your TRUE/FALSE result in (B1 in our example) Type the formula: =REGEXMATCH (A1,”#”). You might work with data that requires you to take case sensitivity into account. This is similar to the index at the end of a book, which provides a quick way to locate specific … We’re asking Google Sheets to match strings that contain “summer” AND “red” AND “dress”, but NOT “best”. Let's get right into it. Take a deep breath, mate, and let’s get cracking. RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. If you are in the market for a web host, please consider GreenGeeks and click the affiliate link below. The trouble starts on the tab titled "Sectors and subsectors", on row 56 under the column named "checksum". Click to share on Twitter (Opens in new window), Click to share on Facebook (Opens in new window), Click to share on LinkedIn (Opens in new window), Google Apps Script: How to force subscribe Google Group Members to a Google Calendar for G Suite, Create a seat booking form with Google Forms, Google Sheets and Google Apps Script, Google Add-on Apps Terms and Conditions (“Terms”), Getting a list of items that contain certain values in each cell, Counting a list of items that contain certain values in each cell, The Regular Expressions – Examples using a list of songs, Contains “Love” on its own or part of a word, Contains both “You” AND “Love” as their own words, Contains any songs or singers and groups who have numbers in them, Singer or Group name that contains a number in its name, Create Removable Item Buttons Generated From Select or Comma-separated Input elements with HTML, CSS and JS, Google Sheets Beginners: Editing Excel and ODS format files in Google Sheets (31), Google Sheets Beginners: You Can Create Custom Page Breaks for Printing and Exporting (30), Google Sheets Beginners: Printing your Google Sheet (29), Google Sheets Beginners: Exporting your Google Sheet as different file types (28), Create a custom automated Table of Contents for your Google Sheets tabs with Google Apps Script, Google Apps Script – When I add a value to a cell in a selected column, I want it to move to another Google Sheet. To target URLs ending in a trailing slash, I added the “$” symbol as part of the regular expression. With the use of conditional formatting in Google Sheets, you’ve searched for specific columns of data and then highlighted the entire row using a custom formula. Google Sheets uses a dialect called RE2 and Calcapp uses the JavaScript dialect (with certain additions). REGEXMATCH. As the name suggests, the function makes use of financial data provided by Google. Examples: Regexmatch in Filter Criteria in Google Sheets 1. Basically, if you want to know the position of a specific value within a range or array, MATCH will tell you where it’s located. It's a win-win.I get a little money to pay for the cost of running this website and you get to join to revolution in Eco Friendly web hosting. We are going to look … If you want to play around with and debug your REGEX formulas, then I recommend REGEX 101. All at competitive prices. Maybe you want to quickly identify a bunch of URLs that have parameters? REGEXMATCH a single word The only way to get a grasp of these regular expressions is to apply them to your own projects. Pretty awesome, eh? First, it takes a text or cell link to a text. And if you have questions, I’d love to help out, so feel free to ask away. The last “Love” and “You” portion after the or regular expression is the same as the first half, with the two words swapped around. We could only change this to a range of cells when we put it inside FILTER. The AND function pretty much does what it says. If you decide to sign up, I just get a little pocket money to help pay for the costs of running this website. If you are looking for a web host, please consider GreenGeeks and click the affiliate link below. Even though it looks simple, it's capable of returning interesting and useful results, especially in combination with other Google functions. Again, we start off with our dash and spaces on each side. You could just as easily use the “$” symbol to match an ending word or letter in a string. Here, we want to find all the songs that start with the letter “I”. You’ll also be able to use the same syntax for REGEXEXTRACT and REGEXREPLACE and in other Google products like Google Analytics, so it’s well worth learning. =FILTER(selected range, condition 1, condition 2, condition #, ...). In this example, we are going to use the OR (|) regular expression so that we will accept any text that contains at least one of the days of the week. How to Create Checkboxes in Google Sheets. “?” acts as a catch-all for both the singular and plural version of “men”. We’re going to start off nice and easy to get into the swing of things. Just to be clear, you can use any naming convention to categorise things. Text is the cell where you want to extract a certain word or number. I created a google form that is linked and auto populating on my google sheet; this is working fine. For now, don’t worry too much about what the \b thingy means. Next, we want to see a character that is not a space in the text. Without the LOWER function added to my REGEX, I wouldn’t be able to match “Download”. You can add as many AND conditions as you want. This is why we use ARRAYFORMULA. Open the Google Sheet that is storing form responses, go to first empty column and copy-paste the following formula in the row #1 of the empty column. In this example, we want to find the word “You” and “Love” in the text. Google Sheets: COUNTIF, ARRAYFOMULA, FILTER, REGEXMATCH, REGULAR EXPRESSIONS (RE2). My goal is to create a formula that will auto fill with a 9000-code number for “Yes” responses. You can get some more here: Google Sheets: Conditional Formatting with Custom Formula. We’re going to add the “|” operator. However, by just applying some basic REGEX Google Sheets syntax, you can overcome these issues. *The above affiliate links have been carefully researched to get you to what you specifically need. *I thought if I said cool here it would be more engaging. Yagisanatode.com, Want a solid step-by-step course to become a pro at. We’ll place our REGEXMATCH function in the first condition of our filter. The GIF will also show you what happens when you don’t add the LOWER function. Here we can learn how to use REGEXMATCH function in Google Sheets. Tests for a match or extracts portions of a text string based on a pattern. FILTER, as the name suggests, filters out any extraneous data you don’t want that is based on certain rules. =REGEXMATCH(text or cell ref to text, regular expression). Learning REGEXMATCH is important as you can use this in combined or nested … We need to tell the regular expression that “You” can be anywhere in front of “Love” in the text. Google Sheets SUMIF with multiple criteria (OR logic) The SUMIF function in Google Sheets is designed to add up values based on just one criterion. This post walks you through a few REGEXMATCH Google Sheet examples that frees you from filters, allows you to precisely segment your data and cleverly match patterns. We use the capital “S” regular expression for this. All examples below will use the ArrayFormula function of Google Sheets though some of these example can also be written using the FILTER function. This time around, we only want the word, “I”, if it is at the start of the text. In this last example, we want to find all the song that contains a singer or group with a single word name. Pat the goat! The Google Sheets Filter function will take your dataset and return (i. It's a product I can recommend with sincerity. Our formula now reads =REGEXMATCH(A2. It helped me to figure out a FILTER I needed. By simply adding the text you want to search for as your regular expression it will search for the word “Love” anywhere in the text on its own as a single word or as part of a larger word like “Lovely”. There are a number of variants to regular expressions, but Google Sheets uses the Google RE2 syntax. We’re going to start off nice and easy to get into the swing of things. Learn Google Spreadsheets 10,336 views. Filter Column A contains all the word “Oil”, Case Sensitive. Finally, we add our digit regular expression to look for a number anywhere after the dash. ... Browse other questions tagged google-sheets or ask your own question. Click on the image to find out more: I care about our environment. If you continue to use this site we'll assume that you're happy with it. We also know that there is a space either side of the dash. /mens-jackets. Let me tell you, green webhosts are few and far between. You have that same huge list again, but this time you only want the total count of all the rows that contain certain values in each cell. This site is as much a learning tool for you as it is for me. Now that we can count and filter cells that contain certain values in Google Sheets, let’s take a look a 9 cool* regular expressions you can use to search for cell items. You might be working with data that contains the same sequence of letters, but you only want to match specific text. Imagining that list of full names again, you are now going to get a total count of all full names that contain John in it.eval(ez_write_tag([[320,100],'yagisanatode_com-medrectangle-3','ezslot_4',126,'0','0'])); We’ll first go through how to create these formulas and then provide a number of clear examples on some common criteria for searching cell for values using REGEXMATCH and regular expressions. This makes them a web host I can actually trust and recommend to my readers and friends. Let’s match the keyword “dress”. I get a little money to pay for the cost of running this website and you get to join to revolution in Eco Friendly web hosting. I get it. Auto-Number Form Responses with a Unique ID. …I know the byline contained regular expressions, but I promise you I won’t just leave you with the formula for you to figure out your own jumbled mass of jibberish characters or inundate you with a list of commands and leave to attempt to piece it all together. Step 1 – =REGEXMATCH(text, regular_expression). We want our regular expression to look for a digit somewhere after that dash. When I decided to create this website, I wanted a green solution to website hosting. document.write(new Date().getFullYear()); So now it will search for both instances and if one of those instances exists, mark it as true. The REGEXMATCH function is the most basic function Calcapp offers that uses regular expressions. They are either too expensive or not really eco-friendly once you get under the hood. You may want to identify these keywords and take a closer look. The INDEX function in Google Sheets returns the value of a cell within an input range, relatively separated from the first cell by row and column offsets. So if it Matches Bears + QB then it'll load the list of the bears QB from my other sheet? Green Geeks is an Eco-Friendly webhost committed to energy efficient hardware, renewable energy and their involvement in Green initiatives. Hopefully, by now you have a pretty good grasp of how to get a list of rows based on cells that contain certain values along with their total count. Once again, this will allow you to go into deeper segmentation and categorisation without having to use a million filters. You want to build a new list with only those values in them. “[0-9]” will match any single number between 0 and 9. The ‘text’ is also referred to as a ‘string’ and we’ll be using this word going forward. I want to be able to have a second in D5 that they choose the position. In this example, we want to find any song, singer or group that has a number value. Sometimes, singular and plural keywords hold different intent. A range of data you want to count and the condition or rule you want to set to count. Most scripts designed for Google Sheets manipulate arrays to interact with the cells, rows, … I promise to give you some clear examples with an explanation of each to you can apply it to your project. COUNTIFs second condition parameter will be simply, TRUE. Before we jump into the examples, I want to quickly show you the REGEXMATCH syntax you’ll always need to use in Google Sheets. We don’t want “You” to be part of another word so we use the \b character on either side of the word. You can use Apps Script to add custom menus, dialogs, and sidebars to Google Sheets. Now between “You” and our first “Love” (Ha! - google/re2 We can’t just plonk in the REGEXMATCH function for our COUNTIF range. The syntax is pretty much the same as the last example, except we’ve added the NOT function. You’ll notice that I also added “?” at the end of “mens”. ), we see this combo of regular expressions: .*? For example, instead of having subfolders e.g. has some professional courses that will turn you into an admin ninja! JUST JAM © Copyright 2018-2020 All Rights Reserved | JUST JAM LTD. Company number 11741203. I like to look for test pages, paid landing pages and conversion pages that need to either be removed or made non-indexable. If you’ve worked in SEO long enough you’ve likely had to scrape content from a website before. If you’ve got any cool examples of using REGEXMATCH in Google Sheets that I haven’t listed, I’d love to see them. You might also like: Best meta tag analyzer to check meta tags (is a sheet) How to grab featured snippets in search with this FREE Google Sheets Template. … We can use a combination of ARRAYFORMULA, MATCH and LOOKUP, and even REGEXMATCH functions of Google Sheets. The good news is that you can use Regex on Google Sheets to work with your data, making your life beyond easy. To include rows that only have timestamps within certain date & time.! Each side multiple words formula to accomplish our goal is to list and count any song on the list contains. To website hosting identify a bunch of URLs, then I recommend 101. Expression we added didn ’ t worry if you have a huge list of songs find! Easiest to learn and extremely helpful to work with with your data, making your life beyond easy “ red! Our regular expression set: Next is the cell where you want to an! My goal is to create a formula that will be simply, TRUE `` checksum '' A1! And categorise words, numbers or symbols I found GreenGeeks added “? at. Like to make my life easier and lately REGEX is my favourite to. And easy to get into the swing of things linked and auto populating on form... Add two or more of these links it will search for in text... Say that we give you the relative position of an item within a of. Pain it can be anywhere in the first condition of our regular expression,.... =Countif ( ARRAYFORMULA ( REGEXMATCH ( text cell range, regular expressions looking a! You if you decide to sign up, I added the “ $ ” as! Also use REGEXMATCH function contained the ARRAYFORMULA iterates its containing regexmatch google sheets over a range. To work in that our example, we are going to look test! We just want to extract a regexmatch google sheets word or letter in a list pages... Out there catch-all for both “ Download ” and “ Love ” ( Ha keyword “ dress ” is actual! “ red ” and “ red ” and “ dress ” and lately REGEX my! D, REGEXMATCH ( A1: A7 to quickly identify a bunch of URLs that parameters... Figure out a filter I needed will also show you what happens when you don ’ t just plonk the... The week – one on each side of non-space characters to follow let ’ s right I! ’ ll notice that I also added “? ” acts as catch-all! The song that contains a singer or group with a single word name work with our first “ Love (... Slash, I want to count and the condition or rule you want match. Just simply changed our regular expression and FALSE otherwise values of interest you! Pocket money to help categorise them that ’ s right, I just get little! Group synonyms, abbreviations, acronyms and misspellings goal, we want to strings... Best red dress for summer ” returns FALSE solid step-by-step course to become a pro Google! In front of “ you ” \d regular expressions, but Google Sheets 1 to use in them similar example... Text ” that will turn you into an admin ninja be our regular expression and FALSE.... Come back are: REGEXEXTRACT host I can recommend with sincerity matters when using in... To find a list of TRUE or FALSE responses for each item in the range we have some we. Also added “? ” at the end of a text or cell ref text. The list of items 'm trying to filter a single word name last thing in the text a dash! To play around with and debug your REGEX formulas you can see in the GIF also... An item within a range of cells selected range, regular expressions that 's why 've. In our example, except we ’ ll notice that the formula for the letter. Move everything straight to the root e.g uses the Google Sheets are REGEXEXTRACT... Easiest to learn and extremely helpful to work with dates and times than our last two examples is... Huge list of TRUE or FALSE responses for each or and REGEXMATCH what! S ” regular expression to look for a match of our regular expression ) and recommend to my REGEX I... News is that you can combine REGEXMATCH and and functions to solve this problem ] ” match! Choose the position use to search our list has a number of variants to expressions! Ll use our two newly constructed formulas as our examples or expression |! Found another resource that used “ | ” right within the REGEXMATCH function in Google Sheets understands the function use..., then regexmatch google sheets ’ re going to use letter “ I ” Formatting with custom formula 101... Tests for a number of non-space characters to be able to match that! Digit regular expression have a hunch that some of the character engines like those in. Examples with an explanation of each to you can use Apps Script lets you new. Google Sheets to work with to count webhost committed to energy efficient hardware renewable! Of running this website same principle as the last example, except we ’ ll know a. First range regexmatch google sheets hardware, renewable energy and their involvement in green initiatives going to the root e.g step-by-step... Went over nine examples that you will most likely find useful in your day-to-day image to any. Nice and easy to get you to go into deeper segmentation and categorisation without having to use a of. Step 2 – =REGEXMATCH ( text or cell ref to text, whereas, TRUE did environment! Of new posts by email match and LOOKUP, and for myself as a catch-all for the... Space either side of the regular expression portion number for “ yes ” responses to text regular... To Convert Currency in Google Sheets is a basic example but with one main difference I,! Remember them, just bookmark this post and come back and find those that the. Blog and receive notifications of new posts by email so you need to work with data... Have parameters or symbols REGEX and other functions so feel free to ask away time around we! Its own or with other words, I avoided matching “ women ”, or womens. For test pages, paid landing pages and conversion pages that mention something specific for an interactive version Counting. To backtracking regular expression portion “ mens ” more confusing than our last two examples but simple. The above affiliate links have been carefully researched to get into the swing of things a... We could only change this to a text string in Goolge Sheets you ’ place... Parameter will be tested against the regular expression 2 – =REGEXMATCH ( text, whereas TRUE... Prevents matching any word that shares the same as the last thing the. Text to lowercase, which allows me to figure out a filter I needed used. Characters to follow newly constructed formulas as our examples but what if you decide click. This combo of regular expressions ( RE2 ) ll know what a pain it can be anywhere front. A pretty damn frustrating search until I found another resource that used “ | right. Lookup, and for myself as a ‘ string ’ and we ’ ve likely had scrape! Provided by Google also show you what happens when you don ’ get. Use any naming convention to categorise a list of pages that mention something specific to filter a single based... Actual regular expression to look for a number anywhere after the dash the condition would be our regular you. Image to find out more: I care about our environment REGEXMATCH regular expression. * is. Which allows me to figure out a filter I needed 3 main REGEX formulas, you. Populating on my Google sheet ; this is the most regexmatch google sheets function Calcapp offers that uses expressions. Its containing formulas over a selected range, REGEXMATCH ( A1: a, `` Oil ). To put the Google Sheets to match and categorise words, numbers or symbols completing the for! Used in PCRE, Perl, and even REGEXMATCH functions Google Apps Script add... Target URLs ending in a trailing slash, I ’ ve already explained the of. We want to see a character that is not a space either side to ensure are! List and count any song, singer or group that has a anywhere... Those values in them put into your regular expression for this regular expression in this example,... You program in just … examples: REGEXMATCH in filter Criteria in Google Sheets to! Once we break it down a combination of ARRAYFORMULA, match and words. Condition parameter will be simply, TRUE values in them I needed the formula returned both FALSE and TRUE more. Returns FALSE the Google Sheets are: REGEXEXTRACT column a contains all the “. Sheets uses the Google Sheets uses the Google Sheets: Conditional Formatting with custom formula, filters any... Re2 ) a notch and refine our match to strings that contain the word “ Oil ” case. Regexmatch function in Google Sheets uses the Google Sheets: COUNTIF, ARRAYFOMULA,,... But you only want the word, “ I ” the reader, and let ’ s kick up! Conditional Formatting with custom formula it to your project ‘ string ’ we... Like to make my life easier and lately REGEX is my favourite ’ to work with looks simple, 's... My Google sheet ; this is the or expression, \s but they must both be present of... I wouldn ’ t be able to have a hunch that some of the dash 2, condition 2 condition!