Match barcode between 2 sheets [Solved/Closed]

- - Latest reply: TrowaD
Posts
2559
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
November 12, 2019
- Dec 13, 2012 at 10:45 AM
Hello,


I have two diffrent sheets. One sheets has tens thausand lines with barcode value,description and quantity of product. another one has 2100 lines with just barcode of products .I want to match up barcode to barcode and get everything information that needed foe 2100 lines from the 10,000 lines.Please help me
See more 

1 reply

Best answer
Posts
2559
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
November 12, 2019
370
1
Thank you
Hi Ram,

Looks like you are in need of the VLOOKUP formula.

=VLOOKUP(1,2,3)
1: the cell/value you want to lookup. The barcode from sheet2
2: the matrix you want to look in. All the data from sheet1
3: the column you want to retrieve info from. For description 2, for quantity 3.

Select the matrix in the formula and hit F4 to make the reference absolute, do this for easy dragging.

Please post back if you get stuck (or to say thank you).

Best regards,
Trowa

Say "Thank you" 1

A few words of thanks would be greatly appreciated. Add comment

CCM 6094 users have said thank you to us this month

I am trying the similar thing with my products in warehouse. And I want those barcodes scanned could be change to red color in excel automatically, is this possible?
TrowaD
Posts
2559
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
November 12, 2019
370 -
Hi Barcode,

It is possible to change color of newly added values.

More info is needed though.
What will the destination be for the barcodes (example column A)?
Do you want to color cell or letters?

To get you started, the following code will color the cell red whenever a value is added in column A:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("A:A")) Is Nothing Then Exit Sub
Target.Interior.ColorIndex = 3
End Sub

To use code, right-click on the sheets tab (name) and select view code. Paste code and try it out.

Best regards,
Trowa