I have two ranges B4:B10 and C5:C10 as follows. I'm looking for a formula to calculate the union of the two ranges (so there will be no duplicates in the result).
At the moment, my formula is as follows. It applies UNIQUE
to the concatenation of the 2 ranges. But I'm wondering if there is a better (eg, shorter) formula to do it.
= UNIQUE(LET(
la,
B5:B10,
lb,
C5:C10,
i,
SEQUENCE(ROWS(la) + ROWS(lb)),
r,
IF(i <= ROWS(la), la, INDEX(lb, i - ROWS(la))),
r))
Could anyone help?
PS: I would prefer a solution without LAMBDA function and its helper functions.