append - Combine 2 Excel tables into one appending the data? -
i have 2 tables on 2 separate sheets of ms excel 2007 workbook, below:
=========================== no. f_name l_name =========================== 13 little timmy 1 john doe 17 baby jessica --------------------------- =========================== no. f_name l_name =========================== 1 john tim 16 kyle joe 14 baby katy 22 qbcd wsde ---------------------------
both have same columns, can have different data.
i want combine data of both tables vertically i.e. single table data in 3rd separate sheet. if possible, want add column sheet name row came.
=================================== sheetname no. f_name l_name =================================== sheet1 13 little timmy sheet1 1 john doe sheet1 17 baby jessica sheet2 1 john tim sheet2 16 kyle joe sheet2 14 baby katy sheet2 22 qbcd wsde -----------------------------------
can done without using macros?
you can activate office clipboard (arrow @ bottom right of clipboard section on ribbon home tab). copy both ranges use paste all command shown below.
you still need fill down sheet name in column first though can done double-clicking fill handle.
update
to same results formulas try filling down sheet name:
=if(row()<=counta(sheet1!a:a),"sheet1",if(row()<counta(sheet1:sheet2!a:a),"sheet2",""))
and fill down , across formula values in tables:
=if(row()<=counta(sheet1!a:a),sheet1!a2,if(row()<counta(sheet1:sheet2!a:a),index(sheet2!a:a,row()-counta(sheet1!a:a)+1),""))
Comments
Post a Comment