Skip to content

Commit

Permalink
Fixed a bug of A.XLOOKUP.COLS
Browse files Browse the repository at this point in the history
  • Loading branch information
chengtie authored Jan 14, 2023
1 parent 61619eb commit b672677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AutoXL.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// return the name and version of the library
A.VERSION = LAMBDA("AutoXL 0.1.0");
A.VERSION = LAMBDA("AutoXL 0.1.1");

// return whether two values or arrays are equal
// case-insensitive
Expand Down Expand Up @@ -152,7 +152,7 @@ A.XLOOKUP.COLS = LAMBDA(lookup_col, lookup_array, return_array, [if_not_found],
BYCOL(
SEQUENCE(COLUMNS(lookup_col)),
LAMBDA(col,
IF(ISERROR(CHOOSECOLS(x, col)), if_not_found, CHOOSECOLSS(return_array, CHOOSECOLS(x, col)))))))))
IF(ISERROR(CHOOSECOLS(x, col)), if_not_found, CHOOSECOLS(return_array, CHOOSECOLS(x, col)))))))))
);

// reduce an array to an accumulated value by applying a LAMBDA function to each row and returning the total value in the accumulator
Expand Down Expand Up @@ -779,4 +779,4 @@ A.LOCATE.RANGEBYTEXT = LAMBDA(find_text, within_array, [find_direction], [extend
LET(
cell, A.LOCATE.CELLBYTEXT(find_text, within_array, find_direction),
A.EXTEND(cell, extend_direction, scope_range, special_cell, include_origin))
);
);

0 comments on commit b672677

Please sign in to comment.