Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Exploring Microsoft Excel’s Hidden Treasures

You're reading from  Exploring Microsoft Excel’s Hidden Treasures

Product type Book
Published in Sep 2022
Publisher Packt
ISBN-13 9781803243948
Pages 444 pages
Edition 1st Edition
Languages
Author (1):
David Ringstrom David Ringstrom
Profile icon David Ringstrom

Table of Contents (18) Chapters

Preface 1. Part 1: Improving Accessibility
2. Chapter 1: Implementing Accessibility 3. Chapter 2: Disaster Recovery and File-Related Prompts 4. Chapter 3: Quick Access Toolbar Treasures 5. Chapter 4: Conditional Formatting 6. Part 2:Spreadsheet Interactivity and Automation
7. Chapter 5: Data Validation and Form Controls 8. Chapter 6: What-If Analysis 9. Chapter 7: Automating Tasks with the Table Feature 10. Chapter 8: Custom Views 11. Chapter 9: Excel Quirks and Nuances 12. Part 3: Data Analysis
13. Chapter 10: Lookup and Dynamic Array Functions 14. Chapter 11: Names, LET, and LAMBDA 15. Chapter 12: Power Query 16. Index 17. Other Books You May Enjoy

The XMATCH function

The =XMATCH(G3,B3:B12) formula in cell H3 of Figure 10.11 returns 9 because it found Stockton Beach in the ninth row of the B3:B12 range. The =XMATCH(G8,B3:B12) formula in cell H8 returns #N/A because Short Beach does not appear within cells B3:B12. Finally, the =XMATCH(G13,B2:E2) formula in cell H13 of Figure 10.11 returns 3 because it found Miles in the third column of the B2:E2 range. As you can see, XMATCH can look down rows or across columns, just like the MATCH function:

Figure 10.11 – The XMATCH function

The XMATCH function has four arguments:

  • Lookup_value – What to look for.
  • Lookup_array – A row, column, or array to search.
  • Match_type – This optional argument offers the same four choices as XLOOKUP:
    • 0 – Exact match, or return #N/A
    • -1 – Exact match, or return the next smaller item
    • 1 – Exact match, or return the next larger item
    • 2 – Wildcard match using *, ?, or ~
  • ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}