Forum Discussion

OleksandrYu's avatar
OleksandrYu
Copper Contributor
Oct 23, 2023
Solved

Comparison of arrays with different dimensions

So, I wanted to fully understand how Excel compares arrays and encountered quite strange behaviour. Here are the cases I tested: 1) Comparison of arrays of any size and single cell - works pretty cl...
  • SergeiBaklan's avatar
    Oct 24, 2023

    OleksandrYu 

    Resulting array always have maximum number of rows/columns of source arrays. If we compare 1D array, i.e. single row or column or in particular single cell, it iterates through rows/columns of 2D array. If both source arrays are 2D it compares elements from left to right and from top to bottom returning #N/A when we out of size of the one of arrays.

Resources