Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Exploring Microsoft Excel's Hidden Treasures

You're reading from   Exploring Microsoft Excel's Hidden Treasures Turbocharge your Excel proficiency with expert tips, automation techniques, and overlooked features

Arrow left icon
Product type Paperback
Published in Sep 2022
Publisher Packt
ISBN-13 9781803243948
Length 444 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
David Ringstrom David Ringstrom
Author Profile Icon David Ringstrom
David Ringstrom
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Improving Accessibility
2. Chapter 1: Implementing Accessibility FREE CHAPTER 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 MATCH function

The =MATCH(G3,B3:B12,0) formula in cell H3 of the MATCH and INDEX worksheet in Figure 10.2 returns 2 because it found Long Beach in the second row of the B3:B12 range:

Figure 10.2 – The MATCH function

The MATCH function has three arguments:

  • Lookup_value – What to look for, which, in the case of cell H3, is the contents of cell G3.
  • Lookup_array – This can be a row, column, or array to search; in the case of cell H3, it is the B3:B12 range.
  • Match_type – This optional argument offers three choices:
    • -1 – Find the closest match that is equal to or less than lookup_value.
    • 0 – Find an exact match with lookup_value, which I specified in cell H3.
    • 1 – Find the closest match that is equal to or greater than lookup_value. This is the default value for MATCH if you don’t specify the third argument.

The =MATCH(G8,B3:B12,0) formula in cell H8 of Figure 10.2 returns #N/A because...

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 $19.99/month. Cancel anytime