简体   繁体   English

Excel表每三行填充一次

[英]Excel table fill every third row

I need help with issue I'm having. 我需要解决我遇到的问题。

I got 2 sheets, 1st sheet is the table I need to fill and 2nd one is the data. 我有2张纸,第一张纸是我需要填写的表,第二张纸是数据。 In the data part I have column A with employee number and B with names. 在数据部分中,我的A列中有员工编号,B列中有姓名。

On the first sheet I have table that I need to fill but table is like this: 在第一张纸上,我有一张桌子需要填写,但是桌子是这样的:

  • Blank row 空白行
  • Number column + Name column 编号栏+名称栏
  • Blank row 空白行

So when I just drag data to auto fill every third row formula skips employees and I only get every third name. 因此,当我仅拖动数据以自动填充时,每三行公式都会跳过员工,而我只会获得每三名。

What can I do to fill every third row from 2nd sheet but without skipping names? 我该怎么做才能填满第二张纸中的第三行而不跳过名称?

Kind of round about way that I have done it. 我已经做到了这种方式。 On datasheet insert column a and put in values A1(1)A2(3)A3(5), Fill down this pattern this is to use as an index for filling the columns on your other sheet. 在数据表上的第a列中插入值A1(1)A2(3)A3(5),填充此模式以用作填充其他工作表上的列的索引。 On the sheet you are filling, insert a new column a and add 1,2,3 and fill down. 在您要填充的工作表上,插入新列a并添加1,2,3并向下填充。

I used this vlookup: 我使用了这个vlookup:

=IFERROR(VLOOKUP(A1,datasheet!A:C,2,FALSE),"")

I copy this to column b and fill both of these columns down. 我将其复制到b列,然后将这两列都填满。 Now you have your values. 现在您有了自己的价值观。 You will have to do a copy and paste values to get rid of the formulas once the info is in there. 一旦信息存在,您将必须复制并粘贴值以摆脱公式。 Select all, copy. 全选,复制。 and Ctrl+Alt+V and select values to do the paste special. 和Ctrl + Alt + V,然后选择值以进行特殊粘贴。

Hope this helps. 希望这可以帮助。

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

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