简体   繁体   English

根据另一个单元格的值将数据从一个单元格复制到另一个单元格

[英]Copying data from one cell to another based on the value of another cell

I am trying to make a heat sheet that updates names according to position.. The Top 2 from each heat go to round 2 and are seeded into heats according to position.. 我正在尝试制作一个根据位置更新名称的加热表。每个加热的前2名进入第2轮,并根据位置播种到加热中。

So H1 R1 winner goes go R2 H1 So in Example below I need to move Deee to R2 H1 所以H1 R1冠军去了R2 H1所以在下面的示例中我需要将Deee移到R2 H1

So Heat 1 Round 1 would be |COLOUR | 因此,第1轮第1轮的比赛| COLOUR | NAME | NAME | POSITION| 位置| |Red | |红色| Abbb | Abbb | 3 | 3 | |White | |白色| Bccc | 密件抄送| 2 | 2 |
|Yellow | |黄色| Deee | 1 | 1 | |Blue | |蓝色| Fggg | Fggg | 4 | 4 |

Round 2 Heat 1 would be |COLOUR | 第2轮第1加热为| COLOUR | NAME | NAME | POSITION| 位置| |Red | |红色| Deee | | | |White | |白色| Bccc | 密件抄送| | |
|Yellow | |黄色| | | | | |Blue | |蓝色| | | | |

EG If position in (c2:C5) = "1" then name in "b2" is copied to "g5" EG如果(c2:C5)中的位置=“ 1”,则将“ b2”中的名称复制到“ g5”

Don't know if this is what you are looking for. 不知道这是您在寻找什么。 Just an idea... 只是个主意...

Assuming your first heat table is in columns A to C with first row being header and the next rows data and column 3 holding the position. 假设您的第一个加热表在A到C列中,第一行是标题,接下来的数据行和第3列保持位置。

You could have a second heat table with eg column "E" holding the new position numbers and column "F" the follwing formular 您可能有第二个加热表,例如,列“ E”保存新的职位编号,列“ F”跟随以下公式

=OFFSET($A$1;MATCH(E1;$C$2:$C$5;0);1)

shows the name in the new heat table according to position in the original table. 根据原始表中的位置在新加热表中显示名称。

   A   |   B   |   C  |  D  |   E   |    F    
Colour | Name  |  Pos |     |new Pos|-formular-

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

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