我有6列和4行,例如:
-- Here is what I used, and it works:
create table temp_table like my_table;
-- t_id is my unique column
insert into temp_table (id) select id from my_table GROUP by t_id;
delete from my_table where id not in (select id from temp_table);
drop table temp_table;
现在我希望我的最终数据如下:
A B C D E F, A B C D, A B C, A B C D E
我使用了串联公式,但得到的结果如下:
A>B>C>D>E>F, A>B>C>D, A>B>C, A>B>C>D>E
在此列中没有可用数据时,我不需要A>B>C>D>E>F, A>B>C>D>, A>B>C>>, A>B>C>D>E>
字符
我尝试过
>>
答案 0 :(得分:0)
有几种解决方法,例如使用REGEXREPLACE
或SUBSTITUTE
:
=SUBSTITUTE(A12, ">>", ">")
=REGEXREPLACE(A12, ">>", ">")
或IF
语句,例如:
=ARRAYFORMULA(IF(A1:F1<>"", A1:F1&">", ))
=JOIN( , ARRAYFORMULA(IF(A1:F1<>"", A1:F1&">", )))
或简单的TEXTJOIN
=TEXTJOIN(">", 1, A1:F1)
答案 1 :(得分:0)