寻找将列以特定方式组合的公式

huangapple go评论55阅读模式
英文:

Looking for a formula to combine columns in a specific way

问题

需要一个公式,而不是VBA,用于列C?请参见下面。

A B C
红色 1 红色 1
黄色 2 红色 2
蓝色 3 红色 3
4 红色 4
黄色 1
黄色 2
黄色 3
黄色 4
蓝色 1
蓝色 2
蓝色 3
蓝色 4
英文:

Need a formula, not VBA, for column C? See below.
enter image description here

A B C
red 1 red 1
yellow 2 red 2
blue 3 red 3
4 red 4
yellow 1
yellow 2
yellow 3
yellow 4
blue 1
blue 2
blue 3
blue 4

答案1

得分: 14

使用 TOCOL()TOROW() 尝试:

寻找将列以特定方式组合的公式


• 单元格 C1 中使用的公式:

=TOCOL(A1:A3&" "&TOROW(B1:B4))

英文:

Try: Using TOCOL() & TOROW()

寻找将列以特定方式组合的公式


• Formula used in cell C1

=TOCOL(A1:A3&" "&TOROW(B1:B4))

huangapple
  • 本文由 发表于 2023年5月21日 05:03:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76297342.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定