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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Teeroy

Well-known Member
Joined
Nov 9, 2012
Messages
2,244
Office Version
  1. 365
Platform
  1. Windows
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.
 

Gaggie

New Member
Joined
Feb 6, 2011
Messages
9
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.
 

Teeroy

Well-known Member
Joined
Nov 9, 2012
Messages
2,244
Office Version
  1. 365
Platform
  1. Windows
You're welcome.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,939
Messages
5,856,409
Members
431,812
Latest member
Elastomers

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
Top