Return list of values ONLY when 2 other discreet values match between worksheets

Mirlynn

New Member
Joined
Dec 5, 2010
Messages
11
I have 2 worksheets in a Workbook.

On Sheet 1 there are 2 columns A&B - ServerName and MoveGroup respectively. ServerNames are unique but the MoveGroup field has duplicate values. Worksheet 2 has a dropdown in A1 that allows me to select a single MoveGroup value.

What I want to do is select a MoveGroup value in Worksheet2.A1 and search Worksheet1.B:B for matches and return the corresponding value where Worksheet2.A = Worksheet1.B.

In other words, I want to be able to pull a list of servers that share the same MoveGroup value. As I mentioned, there are duplicate values in Worksheet1.B so traditional Vlookup and Index/Match functions are problematic.

Secondly, I only want a list of matching servers and avoid a long list of N/A's for non matching rows - ala Index/Match function.

I assume this type of thing will need to be done in VBA using some sort of "find" loop but I am only guessing here. Also, if this the correct theory, sadly, I have no experience with writing VBA so any and all assistance would be appreciated.

Thanks in advance!

Mirlynn
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,567
Messages
6,179,571
Members
452,927
Latest member
whitfieldcraig

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