EXCEL - Créer une barre de recherche avec une formule simple (Sans VBA) — Transcript
Full transcript
- 0:00Hello everyone, I'm Axel. Welcome to
- 0:03this new video on using Excel. In this
- 0:06video, I'm going to show you how to
- 0:09create a search bar in Excel. But first
- 0:12, if you'd like to receive this file in
- 0:14Excel so you can practice at the same
- 0:15time as me, there's a link in the
- 0:17description. Just click, enter your
- 0:20email address and you'll receive this
- 0:22file directly by email. Here we go.
- 0:24Here, I have a list of countries in an
- 0:28Excel table and we're going to create a
- 0:31search bar that will filter the list in
- 0:34real time as we type text. No VBA, no
- 0:38macros, just a single formula. We're
- 0:41going to do two examples. The first
- 0:43example involves creating a search bar
- 0:45on a single column and the second
- 0:47example involves creating a search bar
- 0:50on multiple columns. So, let's start by
- 0:53creating the search box. Here, let's
- 0:56say it's cell C1. And every time we
- 1:00type something in it, Excel should only
- 1:03return the countries that contain this
- 1:06text, even partially. So here, the data
- 1:10has already been formatted as a table.
- 1:13And for this first table, the table
- 1:16name is PI table and the column is PI
- 1:19list. It's important because we'll use
- 1:21these names in the formula. Now, we
- 1:24select the cell in which we are going
- 1:26to display the first search result, to
- 1:30enter the formula that generates the
- 1:32dynamic search. Since we are going to
- 1:35use the FILTER function, which is a
- 1:38dynamic function, meaning that it will
- 1:42expand in width and height depending on
- 1:45the number of results. We start by
- 1:48selecting the table that we want to
- 1:49filter. To do this, we select it. If we
- 1:53do it with the mouse, we just need to
- 1:55place the cursor at the top left of the
- 1:58table. And when it takes the form of a
- 2:01diagonal arrow pointing downwards, we
- 2:04click and it selects all the data in
- 2:06the table, with the name of the table
- 2:08first and the name of the column in
- 2:11brackets. So this is the table that we
- 2:14want to filter. And to keep only the
- 2:17countries that contain the text that we
- 2:20are going to enter in the search cell,
- 2:22we are going to use the inum function
- 2:25with the search function. We select
- 2:28cell C1 for the search text and for the
- 2:32text we select the data from the table
- 2:36again. Don't forget to close the
- 2:39parenthesis of the search function, the
- 2:41en function, and the filter function.
- 2:44And now we are going to dissect this
- 2:46formula together. Here, the first
- 2:49argument of the filter function is the
- 2:51list of ps since this is the list that
- 2:54we want to filter. And the second part
- 2:57is the condition. Search checks if the
- 3:01text entered in C1 appears in each
- 3:04country, i.e. in the countries in the
- 3:07list, and Enum checks if a numeric
- 3:11result exists. If it does, it means
- 3:14that the function is trying to find one
- 3:16of the letters entered in the search
- 3:19cell, i.e. in the PI table. Here, the
- 3:22enumeration function returns true;
- 3:24otherwise, it returns false. We can
- 3:27validate the formula and we will
- 3:28perform the test. For now, we haven't
- 3:31entered anything in the search cell.
- 3:34The filter function displays all
- 3:36countries from the source table. And if
- 3:39we now type letters, this time it only
- 3:42displays the countries that contain
- 3:45these letters. For example, here FR, we
- 3:47only have the countries that contain
- 3:50eff in the name. And of course, we can
- 3:53type a single letter. And if we type
- 3:55several letters, all the letters must
- 3:59be contained in the name. For example,
- 4:02here, we have Germany and we don't have
- 4:05France because even if there is an A in
- 4:07it, there is no a followed by two Ls.
- 4:10So it really works like a search bar as
- 4:13we would normally find. And what's
- 4:16interesting here is that the search
- 4:18function is case-insensitive. So if we
- 4:22type FR in lowercase or FR in uppercase
- 4:26, we get the same results. And as we
- 4:29saw, if the search box is empty, filter
- 4:32automatically returns the entire list,
- 4:35which is perfect for an intuitive
- 4:38search bar. Now, let's move on to the
- 4:41case where we perform a search, but
- 4:43this time on multiple columns. So here
- 4:46we have the search bar and we're going
- 4:49to enter the formula in the first cell
- 4:52at the top left and it will then expand
- 4:54by itself according to the number of
- 4:57columns in the source table. In the
- 5:00example, on three columns on the right
- 5:02starting from the first cell. This time
- 5:05, we're using the table called table 2.
- 5:08We're going to rename it, we're going
- 5:11to call it sales table. So we do
- 5:13exactly the same thing with the filter
- 5:17function. We select the table. Then we
- 5:21use the enum function. We nest the
- 5:25search function. For the search text,
- 5:28we select the search bar, so in which
- 5:30we're going to enter the search text.
- 5:33And this time, for the text, we're not
- 5:36going to select the entire table, but
- 5:39we're going to select all the columns
- 5:42one after the other by connecting them
- 5:45with the ampersand. So we select the
- 5:48first column, we use the ampersand or
- 5:51the commercial e. We select the second
- 5:54column, type the ampersands again, and
- 5:57select the third column. We can close
- 5:59the parentheses of the search by number
- 6:01and filter functions. We validate. And
- 6:04as before, if we do not enter anything
- 6:06in the search bar, the filter function
- 6:09automatically returns the entire list.
- 6:11In the example, all the data in the
- 6:14table for all three columns. But if we
- 6:17perform a search, for example, we type
- 6:20DR, and we get all the values with DR
- 6:23in the name. It doesn't matter which
- 6:26column these letters are in. For
- 6:29example, we can filter on the customer
- 6:31column to search for a customer. For
- 6:34example, I will search for the customer
- 6:36Allro but also on the name of the
- 6:38product, for example vacuum cleaner and
- 6:41everything that contains ASP, high
- 6:43suction vacuum cleaner. But here it
- 6:46filters on all the columns. If we had a
- 6:49customer with the name ASP in it, for
- 6:52example here, if I add a new customer,
- 6:55I will call it ASPI easy. No matter
- 6:58what is in the other two columns, this
- 7:01result also appears in the search, not
- 7:05for the product name but for the
- 7:07customer name since "faire un repas"
- 7:10does not contain the letters ASP. And
- 7:13we can do this for the amount column as
- 7:16well. So that's it for this short video
- 7:19on how to create a search bar in Excel
- 7:22without VBA, without a macro, just with
- 7:24a very simple formula. I repeat, if you
- 7:27would like to receive the Excel file
- 7:29used in this video, there is a link in
- 7:32the description. Just click, enter your
- 7:35email and you will receive this file
- 7:37directly by email. In any case, I hope
- 7:40that this video will be useful to you
- 7:41and as for us, we'll see you next time.
About this transcript
This page contains the full transcript of EXCEL - Créer une barre de recherche avec une formule simple (Sans VBA) by Axel Formateur Excel, generated from the public captions YouTube serves with the video. The transcript has 1,194 words across 165 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.