Find multiple matching cells on a row in two worksheets and add missing information using VBA

arnejon

New Member
Joined
Dec 21, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have been stuck on this issue for some days now and I have searched through several forums but no luck. I will try to explain my issue as simple way as possible.

I have a ws called “Equipment List” that is overview of an inventory. I also have several ws called “Request lists 1”, “Request lists 2” and more.
The “Equipment List” includes a serial number for each item, but the “Request Lists” has all the information except for the serial.
I have a UserForm that calls up the available worksheets (“Request Lists”) and then I can choose the suitable.
I have also managed to create a DoubleClick “check” function in Column A “Equipment List”, based on this information I would like to:
  • When pressing a “Export” button I would like it to compare the information in column C,D,E and F in the “Equipment List” with the same columns in the “Request List” that I have chosen. (ListBox1.Value)
  • Then based on the “Check” in column A, copy the unique “Serial” (Column B) from “Equipment List” and paste it to the matching row and column found in in the “Request List”.
  • Then bring the “Location” from the “Request list” (H1) to the location column in “Equipment List”
I have started working on the macro but have been unable to come up with anything useful.

Please understand my skills within VBA Is limited, but I am interested to learn more and i am very grateful if anyone could help me.

Find and match.xlsm
ABCDEFGHIJK
1SerialItem nrCriteriaSpec 1Spec 2Location
21214Item 1Criteria 922 1/222 1/2
31216Item 1Criteria 922 1/222 1/2
41424Item 1Criteria 922 1/222 1/2
55148Item 1Criteria 922 1/222 1/2
67854Item 1Criteria 722 1/222 1/2
77474Item 1Criteria 722 1/222 1/2
85858Item 1Criteria 722 1/222 1/2
96969Item 1Criteria 720 1/812 1/4
105647Item 2Criteria 720 1/812 1/4
111574Item 2Criteria 720 1/812 1/4
121547Item 2Criteria 720 1/812 1/2
132521Item 2Criteria 220 1/812 1/2
143252Item 2Criteria 222 1/222 1/2
156352Item 2Criteria 222 1/222 1/2
161582Item 2Criteria 222 1/222 1/2
178542Item 2Criteria 220 1/812 1/4
186957Item 2Criteria 220 1/812 1/2
194758Item 3Criteria 222 1/222 1/2
209685Item 3Criteria 220 1/812 1/4
215852Item 3Criteria 220 1/812 1/4
221417Item 3Criteria 220 1/812 1/4
232537Item 4Criteria 220 1/812 1/2
245241Item 4Criteria 220 1/812 1/2
259657Item 4Criteria 822 1/222 1/2
263521Item 4Criteria 822 1/222 1/2
274147Item 4Criteria 822 1/222 1/2
288547Item 4Criteria 820 1/812 1/4
299598Item 5Criteria 1222 1/222 1/2
304147Item 5Criteria 1220 1/812 1/4
312525Item 5Criteria 1220 1/812 1/4
327478Item 5Criteria 1220 1/812 1/4
339587Item 6Criteria 1220 1/812 1/2
345748Item 6Criteria 1020 1/812 1/2
359574Item 6Criteria 1022 1/222 1/2
361543Item 6Criteria 1022 1/222 1/2
373697Item 7Criteria 1022 1/222 1/2
383527Item 7Criteria 1020 1/812 1/4
398572Item 7Criteria 1020 1/812 1/2
40
Equipment List


Find and match.xlsm
ABCDEFGH
1Location:Mars
2SerialItem nrCriteriaSpec 1Spec 2
3Item 1Criteria 922 1/222 1/2
4Item 1Criteria 722 1/222 1/2
5Item 1Criteria 922 1/222 1/2
6Item 1Criteria 720 1/812 1/4
7Item 1Criteria 722 1/222 1/2
8Item 1Criteria 722 1/222 1/2
9Item 2Criteria 720 1/812 1/4
10Item 2Criteria 720 1/812 1/4
11Item 5Criteria 1222 1/222 1/2
12Item 5Criteria 1220 1/812 1/4
13Item 5Criteria 1220 1/812 1/4
14Item 5Criteria 1220 1/812 1/4
15Item 6Criteria 1220 1/812 1/2
16
17
Request List 1
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Match multiple columns in two worksheets and copy/paste missing information
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Match multiple columns in two worksheets and copy/paste missing information
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,626
Messages
6,173,414
Members
452,514
Latest member
cjkelly15

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