XLOOKUP with Boolean OR logic

All data is in an Excel Table nameddatain the range B5:E14. This means the formulas below usestructured references. As a result, the formulas will automatically include new data added to the table. Because we want OR logic, we use addition in this case. Notice Excel is not case-sensitive, so we don’t need to capitalize the colors. In the second array, TRUE values correspond to “pink”. This means the values are mutually exclusive both tests can’t return TRUE at the same time....

April 14, 2025 · 1 min · 195 words · Donna Walters

XLOOKUP with complex multiple criteria

For each of the three separate criteria above, we use a separate logical expression. The output from FILTER is dynamic. If source data or criteria change, FILTER will return a new set of results. For example, =LEFT(“apple”,3) returns “app”. When given TRUE, NOT returns FALSE. When given FALSE, NOT returns TRUE. Use the NOT function to reverse a logical value.

April 14, 2025 · 1 min · 60 words · Jamie Wallace

XLOOKUP with logical criteria

Therefore, when using multiple expressions, a lookup value of 1 makes sense. XLOOKUP supports approximate and exact matching, wildcards (* ?) for partial matches, and lookups in vertical or horizontal ranges….

April 14, 2025 · 1 min · 31 words · Mark Reid

XLOOKUP with multiple criteria

At a glance, this seems like a difficult problem because XLOOKUP only has one value forlookup_valueandlookup_array. How can we configure XLOOKUP to consider values inmultiplecolumns? This approach is explained below. There is no obvious way to supply multiple criteria. Notice, the sixth value in the array is 1. This corresponds to the sixth row in the data, which contains a Medium Blue Hoodie. Because ourlookup_arraycontains only 1s and 0s, we set thelookup_valueto 1....

April 14, 2025 · 1 min · 199 words · Nicole Holmes

XLOOKUP with multiple lookup values

In this worksheet, we have an example we looked at previously. On the left, we have quantity-based discounts, and on the right, we have some random quantities. Let’s set up XLOOKUP to return all results in a single dynamic array. As a first step, I’m going to convert the table on the left into a properExcel Table. Back in cell F5, I’ll enter the XLOOKUP formula we used previously. Thelookup_arrayis the Quantity column, and thereturn_arrayis the Discount column....

April 14, 2025 · 1 min · 183 words · Tanner Brown

XLOOKUP with regex match

This problem is trickier than it looks. Each product code begins with 3 uppercase letters and ends with 2 or 3 uppercase letters. In the middle of the product code is a number between 2 and 4 digits. This is the number we want to use for a lookup value. All formulas below refer to the worksheet shown above. Download the workbook above and follow along. Simple XLOOKUP formula By default, XLOOKUP will perform an exact match....

April 14, 2025 · 2 min · 424 words · Emma Khan

XLOOKUP without #N/A error

The goal is to remove the #N/A error that XLOOKUP returns when it can’t find a result. XLOOKUP function XLOOKUP is a modern replacement for the VLOOKUP function. It is a flexible and versatile function that can be used in a wide variety of situations. However, the alternative value is not limited to text. In this way, you might chain together multiple XLOOKUP formulas. The formula above is not wrong, it is just more complex than necessary....

April 14, 2025 · 1 min · 148 words · Angela Bennett

XMATCH Function

Example To perform an ordinary exact match, only the first two arguments are required. Typically, the XMATCH function is used together with the INDEX function to retrieve a valueat a specific location. XMATCH vs. MATCH XMATCH is an upgraded replacement for the MATCH function. Like the MATCH function, XMATCH performs a lookup and returns a numeric position. Let me know if you notice other differences and I will include them on this page....

April 14, 2025 · 3 min · 480 words · Thomas Cox

XMATCH reverse search

Explanation The XMATCH function offers new features not available with the MATCH function. The default value for search mode is 1, which specifies a normal “first to last” search. Setting search mode to -1 species a “last to first” search. Typically, XMATCH is used with the INDEX function to return a value at that position. As before, search mode is set to -1 to force a reverse search. For more information about using INDEX with MATCH, seeHow to use INDEX and MATCH....

April 14, 2025 · 1 min · 135 words · James Carter

XMATCH with multiple criteria

At a glance, this seems like a difficult problem because XMATCH only has one value forlookup_valueandlookup_array. How can we configure XMATCH to consider values frommultiplecolumns? This approach is explained below. The XMATCH function The XMATCH function is an upgraded replacement for the olderMATCH function. This is the array used inside XMATCH as thelookup_array. Because thelookup_arraycontains only 1s and 0s, we provide 1 as thelookup_value. The screen below shows how the arrays can be visualized with simple formulas in a worksheet....

April 14, 2025 · 1 min · 134 words · Erica Phillips

XNPV Function

Negative values represent cash paid out; positive values represent cash received. The first date indicates the beginning of the schedule of payments and must be the earliest date. Subsequent dates may occur in any order. Enterrateas a percentage like 6% or the decimal value 0.06. Valuesrepresent a series of cash flows that correspond todates. The first value is optional and corresponds to a cost at the beginning of the investment....

April 14, 2025 · 1 min · 168 words · Christopher Hughes

XOR Function

Whereas the OR function returns true ifanyinput is TRUE, XOR only returns TRUE in specific cases. If both values are TRUE, XOR returns FALSE. The concept of exclusive OR is more common in the world of programming. If they visit one or the other, the original statement is TRUE. If they visit neither or both, the original statement is FALSE. OR returns TRUEif any condition is TRUE. If all conditions are FALSE, the OR function returns FALSE....

April 14, 2025 · 1 min · 129 words · Austin Blackwell

YEAR Function

Note:dates are serial numbersin Excel, and begin on January 1, 1900. Dates before 1900 are not supported. To display date values in a human-readable date format, apply thenumber formatof your choice. you could use the DAY function to extract a day number from a date into a cell.

April 14, 2025 · 1 min · 48 words · Johnathan Carter