Paste with Blank Rows?

T

trishlee

I have the following setup in worksheet 1:
Item Qty
Apples 5
Oranges 2
Bananas 10

I want it to appear in worksheet 2 as:
Item Qty
Apples 5
Strawberries
Oranges 2
Cherries
Lemons
Blueberries
Bananas 10
Peaches
Pears

Is there a way that I can get the values from worksheet 1 to worksheet 2
without have to cut and paste each of the individual values?
 
P

p45cal

Sounds like homework; check out -VLookUp-

trishlee;455763 said:
I have the following setup in worksheet 1:
Item Qty
Apples 5
Oranges 2
Bananas 10

I want it to appear in worksheet 2 as:
Item Qty
Apples 5
Strawberries
Oranges 2
Cherries
Lemons
Blueberries
Bananas 10
Peaches
Pears

Is there a way that I can get the values from worksheet 1 to workshee
2
without have to cut and paste each of the individual values
 
D

David

try =VLOOKUP(A1,Sheet1!$A$2:$B$11,2,FALSE)
where a1 = item, sheet1 and range of lookup ($, locks the cells), 2 = column
you are wanting results from and false is saying exact match
then copy the formula down
 
G

Gord Dibben

And if you don't want to see all those #N/A errors use this formula to hide
them.

=IF(ISNA(VLOOKUP(A2,Sheet1!$A$2:$B$11,2,FALSE)),"",VLOOKUP(A2,Sheet1!$A$2:$B$11,2,FALSE))

Entered in Sheet2 at B2 and copied down.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top