Concatenate permutations between two columns

前端 未结 4 1672
陌清茗
陌清茗 2021-01-07 06:02

I need help with an excel assignment.

Name    City
---------------
John    London
Maxx    NY
Ashley  DC
        Paris

Solution for this mus

4条回答
  •  太阳男子
    2021-01-07 06:40

    You can use this formula (start in Row 1 and fill down until you run out of combinations):

    =IFERROR(INDEX(L_1, CEILING(ROW()/COUNTA(L_2),1)  ,1) & "-" & 
             INDEX(L_2, 1+MOD(ROW()-1, COUNTA(L_2))   ,1), "That's it!")
    

    I'm using named ranges "L_1" and "L_2" to refer to the first and second lists respectively

提交回复
热议问题