Reader small image

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

Product typeBook
Published inSep 2022
PublisherPackt
ISBN-139781803243948
Edition1st Edition
Tools
Right arrow
Author (1)
David Ringstrom
David Ringstrom
author image
David Ringstrom

David Ringstrom exclaimed “Well, this is a stupid program, you can’t do anything with it” the first time that he launched Lotus 1-2-3 in 1987, unaware that pressing the slash key displayed the menu. That moment sealed his fate as he is now a nationally recognized spreadsheet expert. In 1991, David started a spreadsheet consulting practice that he still runs today. David has taught over 2,000 webinars and published hundreds of articles, all on Excel, and he imparts spreadsheet skills to thousands of college students each year. He is the author or coauthor of five books and the technical editor of over 40 books. He is a certified public accountant and a graduate of Georgia State University and has served in the United States Navy.
Read more about David Ringstrom

Right arrow

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 page is locked
Previous PageNext Page
You have been reading a chapter from
Exploring Microsoft Excel’s Hidden Treasures
Published in: Sep 2022Publisher: PacktISBN-13: 9781803243948

Author (1)

author image
David Ringstrom

David Ringstrom exclaimed “Well, this is a stupid program, you can’t do anything with it” the first time that he launched Lotus 1-2-3 in 1987, unaware that pressing the slash key displayed the menu. That moment sealed his fate as he is now a nationally recognized spreadsheet expert. In 1991, David started a spreadsheet consulting practice that he still runs today. David has taught over 2,000 webinars and published hundreds of articles, all on Excel, and he imparts spreadsheet skills to thousands of college students each year. He is the author or coauthor of five books and the technical editor of over 40 books. He is a certified public accountant and a graduate of Georgia State University and has served in the United States Navy.
Read more about David Ringstrom