From the sales table, I need to look through the product column, and if I type "quad" as a partial text condition or criteria, I need the records with the product that contains the word "quad" to be extracted. Some changes to "Carlota." I need to see all the records where the product contains "Carlota."
Now we are going to use the FILTER function, but we need to generate TRUEs and FALSEs that tell us which row contains a product that has the text "Carlota" in it. We can do that by using the SEARCH function. FIND text: we want to find "Carlota" within any of the product names over here. Now, when I click on this cell, I already gave the cell the defined name "partial text criteria." Comma. Now, within_text, we might select a single cell, but I want the whole column. SEARCH will deliver either an error if it didn't find "Carlota," or, when it finds "Carlota," it will say the position here, which would be 1. Close parenthesis. When I hit F9, that's an array of errors and numbers. It looks mostly like "Carlota" is always going to be in the first position, but if we search for the letter "C," it would find "Carlota," and it would find "Claude," "trick," and "catch," and that letter C is in the 9th position. So what we're interested in are the numbers. Control Z. We ask, using ISNUMBER, "Are you a number?" TRUE will be when it finds a number. F9. FALSE is when it found an error. That array of TRUEs and FALSEs can filter our table. Control Z.
Now we use the amazing new Office 365 FILTER function. The array: now I want the whole table. In the upper left corner, when I see my diagonal black arrow, I click to select the entire table. I can see the table name. Comma. And there you go, include those TRUEs and FALSEs will work. Now when I hit Enter, the filter table spills. Notice up in the formula bar, any cell is grayed out because the formula only lives in the top cell. Now when I change this to "quad," and there we have filtered the table with partial text criteria or contains criteria. If I type the letter "C," it gets all the "Carlotas," but it also gets that record with the word "trick" "catch." Bonus number one: notice that's lowercase C, and it found uppercase. If you want to enforce case rather than search, you use FIND. Same thing. It just can see the case, and that formula sees that lowercase C in the word "trick," but it does not extract any of the records with only an uppercase C.
Here's Bonus Two, a great example. Here's customers. We want to see everyone on San Pablo, everyone on College Ave, and just like that, we've done partial text data extraction.
Alright, if you liked that video, be sure to click that thumbs up, leave a comment, and subscribe, because there's always lots more videos to come from XLSFriend. And if you want to learn a lot more about the FILTER function, check out these videos.
