Joining excel records based on column data

前端 未结 2 1211
不思量自难忘°
不思量自难忘° 2021-01-15 21:22

I have 3 excel spreadsheets with the same columns and (supposedly) the same data. I need to line up all 3 documents and look for inconsistencies within the data. The data is

2条回答
  •  轮回少年
    2021-01-15 21:45

    Using macros, you can do it.

    Sub Insert_Rows_Loop()
      Dim CurrentSheet As Object
      ' Loop through all selected sheets.
      For Each CurrentSheet In ActiveWindow.SelectedSheets
        ' Insert n rows depending on values
        //  **** 
        // Write your conditions 
        //  ****
        // Insert a row as below
        CurrentSheet.Range("b:b").EntireRow.Insert
        // Do other stuffs....
      Next CurrentSheet
    End Sub
    

提交回复
热议问题