简体   繁体   English

在 Google 表格中的一行中的单独列中显示每个数字

[英]Display each digit in a separate column in a row in Google Sheets

I have a column of data in binary values and I would like to split each digit of the number in the column into different cells across a row.我有一列二进制值的数据,我想将列中数字的每一位拆分为一行中的不同单元格。 How would I go about doing so?我该怎么做? I saw the split function, but could not get it to work.我看到了 split 功能,但无法使其工作。 https://support.google.com/docs/answer/3094136 ? https://support.google.com/docs/answer/3094136

One of my example inputs:我的示例输入之一:

1000111110100101111011110
1000110000100101000010000

try with this (you just change A2 to your cell):试试这个(您只需将 A2 更改为您的单元格):

=transpose(arrayformula(mid(A2,row(A1:offset(A1,len(A2),0)),1)))

For some rows (I limited text length with 30 char, you can change it):对于某些行(我用 30 个字符限制了文本长度,您可以更改它):

=transpose(ARRAYFORMULA(mid(transpose(query(arrayformula(if(isnumber(A1:A)=true ,text(A1:A,"0"),A1:A)),"Select Col1 where Col1<>''")),row(A1:A30),1)))

try:尝试:

=ARRAYFORMULA(REGEXEXTRACT(A1:A, REPT("(.)", LEN(A1:A))))

0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM