简体   繁体   中英

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..

So H1 R1 winner goes go R2 H1 So in Example below I need to move Deee to R2 H1

So Heat 1 Round 1 would be |COLOUR | NAME | POSITION| |Red | Abbb | 3 | |White | Bccc | 2 |
|Yellow | Deee | 1 | |Blue | Fggg | 4 |

Round 2 Heat 1 would be |COLOUR | NAME | POSITION| |Red | Deee | | |White | Bccc | |
|Yellow | | | |Blue | | |

EG If position in (c2:C5) = "1" then name in "b2" is copied to "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.

You could have a second heat table with eg column "E" holding the new position numbers and column "F" the follwing formular

=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-

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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