Cross Join two Columns

旧城冷巷雨未停 提交于 2019-12-25 18:23:29

问题


I want to Join these two Columns in Google sheets so that each cell of column A is Joined to all the values of Column B. Thanks

Labels Dates

Ess Performance        7/1/2019

DV3-Retargeting         7/2/2019

Facebook WCA            7/3/2019

DV3-Retargeting          7/4/2019

DV3-Retargeting          7/5/2019

DV3-Retargeting          7/6/2019

DV3-Retargeting          7/7/2019

Facebook LAL            7/8/2019

DV3-Retargeting         7/9/2019

FiddeAds            7/10/2019

                    7/11/2019
                    7/12/2019
                    7/13/2019
                    7/14/2019
                    7/15/2019
                    7/16/2019
                    7/17/2019
                    7/18/2019
                    7/19/2019
                   7/20/2019
                    7/21/2019
                     7/22/2019
                      7/23/2019
                      7/24/2019
                      7/25/2019
                      7/26/2019
                     7/27/2019
                       7/28/2019
                     7/29/2019
                     7/30/2019
                     7/31/2019

Output I want to see

Ess Performance         07-01-2019

DV3-Retargeting     07-01-2019

Facebook WCA            07-01-2019

DV3-Retargeting         07-01-2019

DV3-Retargeting         07-01-2019

DV3-Retargeting         07-01-2019

DV3-Retargeting         07-01-2019

Facebook LAL            07-01-2019

DV3-Retargeting         07-01-2019

FinddAds            07-01-2019

So on...........


回答1:


Not sure if I fully understood what you try to achieve, but see if this helps

=ArrayFormula(split(substitute(transpose(split(join(" ", query(split(join(char(10), filter(substitute(C2:C, " ", "|"), len(D2:D))&char(10)), char(10))&"_"&text(filter(D2:D, len(D2:D)), "yyyy-mm-dd"),,9^9)), " ")), "|"," "), "_"))


来源:https://stackoverflow.com/questions/57390532/cross-join-two-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!