Track number from a list and copy paste the value's

nicod

New Member
Joined
Jan 22, 2015
Messages
8
Hi Guys!

Excel is giving me a hard time. I hope you guys could help me find a solution.

I have a grocery list like in the picture below in Worksheet1. The one below is simplified but actually it exists out of 1000 numbers with different discription, units and amounts. The worksheet1 one imported does not change anymore.

cMZjQc
[IM


In Worksheet2 I have an empty list like below.

Picture_2.png
[/URL]

What I would like to do is, when I fill in a number in Worksheet2 it automatically looks up if it exists in Worksheet1. If it exists it should copy and paste the cell value that is in the same row in colum B(description), C(unit) en D(amount).

For example : The number is filled in, the green hatches are automatically copy pasted from the list in Worksheet1.

Picture_3.png
[/URL]
image uploader
[/IMG]

I hope I have made myself clear enough. If you have any questions leave a message. Thanks in advance guys!

Kind Regards,

Nico
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
On Sheet2 try these:

In Cell B2
Code:
=IF($A2="","",IF(ISERROR(VLOOKUP($A2,Sheet1!$A$2:$D$14,2,0)),"Bad",VLOOKUP($A2,Sheet1!$A$2:$D$14,2,0)))

In Cell C2
Code:
=IF($A2="","",IF(ISERROR(VLOOKUP($A2,Sheet1!$A$2:$D$14,3,0)),"Bad",VLOOKUP($A2,Sheet1!$A$2:$D$14,3,0)))

In Cell D2
Code:
=IF($A2="","",IF(ISERROR(VLOOKUP($A2,Sheet1!$A$2:$D$14,4,0)),"Bad",VLOOKUP($A2,Sheet1!$A$2:$D$14,4,0)))

Change the word "Bad" to whatever you want if the number you input in column-A isn't valid.

Copy down the B2, C2 and D2 cells as far as you want. Update the $d$14 value to grow as big as your list on Sheet-1.
 
Last edited:
Upvote 0
Hi philwojo,

This is exactly what I mean. Thank you so much!

This thread can me closed.

Kind Regards,

Nico
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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