How to copy a certain row from another sheet to a place on the first sheet

Gaggie

New Member
Joined
Feb 6, 2011
Messages
9
i have the following:

sheet aaa.
name number stock
abc 1234 120
ghj 4324 200
ccc 6543 150


sheet bbb.
number boxes start left
1234 12 120 108
6543 50 150 100


Want to have on sheet aaa.
name number stock
abc 1234 120 1234 12 120 108
ghj 4324 200
ccc 6543 150 6543 50 150 100


Pls could somebody help me, is there any vba script to do this.

Thanks Gaggie
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You don't need VBA, this is easily done by formula. Just use the formulas shown below:

aaa

ABCDEFG
1namenumberstock
2abc1234120123412120108
3ghj4324200
4ccc6543150654350150100

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
D2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE))
E2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,2,FALSE))
F2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,3,FALSE))
G2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,4,FALSE))

<tbody>
</tbody>

<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4


And fill the formulas down.
 
Upvote 0
You don't need VBA, this is easily done by formula. Just use the formulas shown below:

aaa

ABCDEFG
1namenumberstock
2abc1234120123412120108
3ghj4324200
4ccc6543150654350150100

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
D2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE))
E2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,2,FALSE))
F2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,3,FALSE))
G2=IF(ISERROR(VLOOKUP($B2,bbb!$A$2:$D$3,1,FALSE)),"",VLOOKUP($B2,bbb!$A$2:$D$3,4,FALSE))

<tbody>
</tbody>

<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4


And fill the formulas down.

Thanks that works.
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top