excel-formulaexcel-2010

Union function to append two lists in Excel (not Office 365)


I have two lists (variable length) in Excel (1, 2 resp.) and wish to find the union of these:

Union

My research yields numerous solutions / questions to this effect, however, they either focus on Office 365, VB, Lambdas, PowerQuery variations - they do not proivde a function fit for Excel 2010 etc.:

Requirements/research:

Progress

Have been contemplating an offset function that picks up values in the 2nd list once those in the first list are exhausted in an array function -- but am a litte lost otherwise (and don't want to restrict anyone in scope of functions that may be avail. in this regard).

Can someone assist me in finding a function per above pls?


Solution

  • Using INDEX/MATCH:

    =IF(ROW(A1)>COUNTA($B$4:$B$6),INDEX($D$4:$D$7,ROW(A1)-COUNTA($B$4:$B$6)),INDEX($B$4:$B$6,ROW(A1)))
    

    Put that in F4 and copy down.

    enter image description here