I have worksheet with 100 rows (for example). I creating a new sheet to cover it to 400 rows. The original looks like:
name1, value1, name2, value2
a, 1, b, 1
c, 1, d, 1
Want to make the new sheet looks like:
name, value, joined
a, 1, ab
b, 1, ab
c, 1, cd
d, 1, cd
The formal I'm using in the first two rows are:
=sheet1!A2, =sheet1!B2, =CONCATENATE(sheet1!A2,sheet1!C2)
=sheet1!C2, =sheet1!D2, =CONCATENATE(sheet1!A2,sheet1!C2)
Now I want to copy those formulas to all the other rows, but if I select those and drag it will only pay attention to the formula in the last row. I tried also with VBA but the debugger is worthless(saying there is an error without pointing to the line/actual error).
Edit
When I mark all of the rows and drag with ALT pressed it preserved the formulas but it add +2
to the rows instead of +1
. Getting closer..
Edit 2
Sort in VBA by putting break points on each line to identify the problematic line. Link to the VBA example I took - doing pretty much the same.