Hands-On Lab: Dynamic Search Formula in Excel Using INDEX, SMALL, and SEARCH

⏳ Training Duration: 35–60 Minutes

🎯 Level: Intermediate

🧠 Learning Method: Hands-on Practice

📦 Material Format: Interactive, available offline

📌 Requirements: Basic understanding of Excel formulas and cell references

🎯 Objective: Participants will learn how to build an automatic search feature similar to a database system using INDEX, SMALL, SEARCH, and IFERROR functions.

Have you ever seen an automatic search feature on a website or application? By combining the INDEX, SMALL, and SEARCH functions, we can create a dynamic search feature in Excel that feels like a simple database or SQL system.

When users type a keyword into the search box, Excel will instantly display all matching data automatically. This technique creates a search experience similar to a lightweight database or SQL query system.

🌟 Benefits of Dynamic Search in Excel

💡 Tips:
Many participants are amazed when Excel can perform searches similar to Google 😄 This usually sparks curiosity to learn more advanced formulas.

📘 Functions Used

In this exercise, we combine several Excel functions:

🧠 Main Dynamic Search Formula

In this exercise, we use several search formulas to automatically display matching data based on keywords typed into cell C2.

📌 Name Formula:
=IFERROR(INDEX(Datamaster!B$2:B$51,SMALL(IF(ISNUMBER(SEARCH($C$2,Datamaster!C$2:C$51)),ROW(Datamaster!C$2:C$51)-ROW(Datamaster!C$2)+1),ROW(A1))),"")
📌 Position Formula:
=IFERROR(INDEX(Datamaster!C$2:C$51,SMALL(IF(ISNUMBER(SEARCH($C$2,Datamaster!C$2:C$51)),ROW(Datamaster!C$2:C$51)-ROW(Datamaster!C$2)+1),ROW(A1))),"")
📌 Department Formula:
=IFERROR(INDEX(Datamaster!D$2:D$51,SMALL(IF(ISNUMBER(SEARCH($C$2,Datamaster!C$2:C$51)),ROW(Datamaster!C$2:C$51)-ROW(Datamaster!C$2)+1),ROW(A1))),"")
📌 Blood Type Formula:
=IFERROR(INDEX(Datamaster!E$2:E$51,SMALL(IF(ISNUMBER(SEARCH($C$2,Datamaster!C$2:C$51)),ROW(Datamaster!C$2:C$51)-ROW(Datamaster!C$2)+1),ROW(A1))),"")
⚠️ Excel 2016 or Older Versions:
After typing the array formula, press Ctrl + Shift + Enter to ensure the formula works correctly.
📌 Notes:
In this exercise, the search is performed based on the Position data located in column C of the Datamaster sheet.

The formula above is used to search all data in column B that contains text matching the keyword entered in cell F2.

🧭 Steps to Create Dynamic Search

  1. Create 2 worksheets: Datamaster and Dashboard.
  2. In the Datamaster worksheet, create a table containing: Name, Position, Department, and Blood Type.
  3. In the Dashboard worksheet, create a search box in cell C2.
  4. Enter the search formula in the result area.
  5. Press Ctrl + Shift + Enter if using an older version of Excel.
  6. Type a keyword into the search box.
  7. Excel will automatically display all matching results.
Excel participant database
Example of participant database data
Dynamic Search Formula
INDEX SMALL SEARCH formula for automatic search (see formulas in the Main Dynamic Search Formula section)
Excel Dynamic Search Demo
Automatic data search demonstration in Excel

🧪 Search Case Examples

For example, if users type:

If no matching data is found, the result area will remain blank or display a custom message using IFERROR.

⚠️ Common Mistakes When Creating Dynamic Search

🎥 Dynamic Search Formula Tutorial Video in Excel

The video above demonstrates how Excel can be used to create an automatic search feature using a combination of INDEX, SMALL, and SEARCH formulas.

🎉 Congratulations! You have successfully created an automatic search feature in Excel.

This technique is commonly used in professional dashboards, participant search systems, inventory databases, and interactive reporting tools.

After understanding this concept, you can expand it into features such as:

  • 🔍 Participant search engines
  • 📦 Inventory search systems
  • 👨‍🎓 Student databases
  • 🏥 Patient records
  • 📊 Interactive Excel dashboards

The more frequently you practice formulas like these, the stronger your Excel logic and analytical thinking skills will become 🚀

Want to Learn Excel and Computer Skills for Free?

Explore various Excel formulas, automatic dashboards, dynamic search techniques, and many other practical Excel tips together with TTC.

🤖 JengBot