Find matching value in 2 sheets and add value from row above found value to dropdown list without duplicating.

Mike Neal

New Member
Joined
May 24, 2020
Messages
38
Office Version
  1. 2013
Platform
  1. Windows
I am trying to use the values in Column A on Sheet1 and find the matching values in Row 2 on Sheet2. Then add the values from the cells in Row 1 in Sheet2 of the column where the matching values were found to a combobox list without duplicating any values in the list. I can find examples to search for matches but nothing that uses an offset and adds them to a list. Any help would be appreciated. Thank you.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
ID NumberR300R400R501R305R303R305
LocationREVLIS 3REVLIS 4REVLIS 2REVLIS 3AKROCHEMSTOW
Serial Number333333333333333344444eeee
Model4434344343443434434333333333
Manufacturerdfgsfgdfgsfgdfgsfgdfgsfgggggggggg
Year Built3333333333333333666wrwrw
Descriptionfdgsdfgfdgsdfgfdgsdfgfdgsdfgafaffafswerwwr
Commentssdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgasffwerwrwr
Date Entered6/18/207/1/207/1/207/1/207/1/207/1/20
Task1T106T105T202T202T107T106
Task 2T101T106T204T106T105T101
Task 3T202T107T106T202T105
Task 4T203T432T107T105
Task 5T204T202T101
Task 6T107
Task 7
Task 8
Task 9
Task 10
 
Upvote 0
This is Sheet1 some of the values are just typed in letters and numbers so I can see if my other macros are working.
 
Upvote 0
This is Sheet1
Equip IDTask ID
R303T202
R303T105
R400T202
R400T106
R400T105
R501T101
R305T432
R400T107
R400T204
 
Upvote 0
As you can see from my sheets for example: R303 is on sheet1 and sheet2. I would like my macro to take the R303 from sheet1 look it up on sheet2 and add the location "AKROCHEM" to my combobox drop down. I would like to do this for all Equip IDs on sheet1 and not have any duplicates in the drop down. There are 3 comboboxes on my userform. The first is the Location, the second is the Equip ID and the third is the Task ID. Sheet 1 is all the Equip IDs and Task IDs that are due. I am hoping to select a location and have only the Equip IDs from that location show up in the Equip ID drop down "These Equip IDs all have Tasks Due to be performed". The Task ID drop down will have all the tasks from sheet1 that are paired with the Equip ID that is selected.

Right now I have all the locations added to the list when the userform is initialized. I would rather have only the locations show that have an associated Equipment ID on the sheet1. I hope this makes sense.

Thanks for the help.
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,170
Members
448,870
Latest member
max_pedreira

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