[英]How to make a chart with rows based on cell value?
Is it possible to make a chart (or a column in my case) that would fill in a certain number of rows based on a cell value.是否可以根据单元格值制作一个图表(或在我的情况下是一列)来填充一定数量的行。
For example, in my file I have:例如,在我的文件中,我有:
Alex 5
Josh 3
Normally I would be doing this manually but what I want as output is the following (and this can be the same worksheet doesn't matter):通常我会手动执行此操作,但我想要的输出如下(这可以是同一个工作表并不重要):
Alex Date
Alex Date
Alex Date
Alex Date
Alex Date
Josh Date
Josh Date
Josh Date
Where the value next to a name determines how many times that person's name shows up in the chart/column, followed by the next person's name with the number of times based on the value next to the name.姓名旁边的值决定了该人的姓名在图表/列中出现的次数,然后是下一个人的姓名,次数取决于姓名旁边的值。 Date would just be "today's date" or whatever date I happened to be working on this sheet.
日期只是“今天的日期”或我碰巧在此工作表上工作的任何日期。 Ideally, this would just happen automatically.
理想情况下,这会自动发生。 Possible without a macro?
可以不用宏吗? I can also try a macro for this, but I have zero experience with that.
我也可以为此尝试一个宏,但我对此的经验为零。
You could use the following formula in every cell of a new column (in the same table):您可以在新列(在同一个表中)的每个单元格中使用以下公式:
=COUNTIF($A$1:$A$8;A2)
This won't give you a new table, just an expansion of the existing table.这不会给你一个新表,只是现有表的扩展。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.