Display multiple matches within a named range

Nartherner

New Member
Joined
Mar 28, 2012
Messages
17
So I am trying to populate a drop-down list with the results of a search in a named range. In this case, there will be multiple cells that satisfy the search parameter. For example, I am looking for all the dates where my salesperson "Amy" made a sale and I want those dates to be the content for a drop-down list. The table is set up such that the salesperson's name is in the left-most column and the sales dates are in a separate column so there will be multiple matches. Any formulas that will bring back multiple answers, instead of just the first one found?

Thanks
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thanks alfranco17. I might not be very clear in my description. This is happening within a dynamic named range. So the dynamic named range has the employee as the left-most column but there are multiple occurrences of the same employee. What I need to do is find each time the employee's name appears in the left column and return the value in a column to the right each time. Using vlookup, match, or index, stops once it finds the first occurrence. I need something that will query the entire range and return all the occurrences.

Thanks again.
 
Upvote 0
I'd place the employee in column B and in cell A2 would enter the formula =b2 & countif(b$2:b2,b2) and fill down.
Then, on the lookup, I'd place a validation with the list of employees for the selection in A1, and then, to display the different dates starting in A3, enter this formula =iferror(vlookup(a$1&row()-2,data!a:f,column(),0),"").With that, in one column you create an index with the name plus the number of times it's been repeated, and then look it up using the name and the row number.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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