excelhunter
New Member
- Joined
- Jan 31, 2018
- Messages
- 2
Hello. I am a first time user. I can usually search for what I need and adapt the solution to my situation but this challenge has me wanting. I have a set of data that I would like to search as a set of columns or an array and I would like to return the results of each occurrence to a cell or if necessary a set of cells in a row extending to the right. My data set looks like the following.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2017[/TD]
[TD]2016[/TD]
[TD]2015[/TD]
[TD]2014[/TD]
[TD]2013[/TD]
[TD]2012[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]smith
[/TD]
[TD]jones[/TD]
[TD]henry[/TD]
[TD]dole[/TD]
[TD]hayes[/TD]
[TD]henry[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]bush[/TD]
[TD]clinton[/TD]
[TD]harry[/TD]
[TD]mike[/TD]
[TD]mike[/TD]
[TD]clinton[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]donna[/TD]
[TD]brown[/TD]
[TD]brown[/TD]
[TD]sarles[/TD]
[TD]hayes[/TD]
[TD]miller[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]hayes[/TD]
[TD]zero[/TD]
[TD]bush[/TD]
[TD]jackie[/TD]
[TD]bill[/TD]
[TD]bill[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]dole[/TD]
[TD]mike[/TD]
[TD]james[/TD]
[TD]henry[/TD]
[TD]jones[/TD]
[TD]jones[/TD]
[/TR]
</tbody>[/TABLE]
I have a column of data that shows the entire roster of names (80+) that I am using as the search string and I would like to create a formula that looks up the array similar to the one above and returns the year in the column header that corresponds with the name occurrence. The results should look like below. The names in the left column are the search string and the results would be the years in the second column. I figure once I have the first formula I can just copy it down the column and use relative referencing to have it reference each successive name as a search string in the data array.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Smith
[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Bush[/TD]
[TD]2017, 2015[/TD]
[/TR]
[TR]
[TD]Donna[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Hayes[/TD]
[TD]2017, 2013[/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]2017, 2014[/TD]
[/TR]
[TR]
[TD]jones[/TD]
[TD]2016, 2013,2012[/TD]
[/TR]
[TR]
[TD]etc.......[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If it is difficult to return multiple results to a cell, then the rresults may extend to cells to the right. Any help is very much appreciated. I have tried combinations of lookup, match, index, etc without results.
Regards,
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2017[/TD]
[TD]2016[/TD]
[TD]2015[/TD]
[TD]2014[/TD]
[TD]2013[/TD]
[TD]2012[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]smith
[/TD]
[TD]jones[/TD]
[TD]henry[/TD]
[TD]dole[/TD]
[TD]hayes[/TD]
[TD]henry[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]bush[/TD]
[TD]clinton[/TD]
[TD]harry[/TD]
[TD]mike[/TD]
[TD]mike[/TD]
[TD]clinton[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]donna[/TD]
[TD]brown[/TD]
[TD]brown[/TD]
[TD]sarles[/TD]
[TD]hayes[/TD]
[TD]miller[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]hayes[/TD]
[TD]zero[/TD]
[TD]bush[/TD]
[TD]jackie[/TD]
[TD]bill[/TD]
[TD]bill[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]dole[/TD]
[TD]mike[/TD]
[TD]james[/TD]
[TD]henry[/TD]
[TD]jones[/TD]
[TD]jones[/TD]
[/TR]
</tbody>[/TABLE]
I have a column of data that shows the entire roster of names (80+) that I am using as the search string and I would like to create a formula that looks up the array similar to the one above and returns the year in the column header that corresponds with the name occurrence. The results should look like below. The names in the left column are the search string and the results would be the years in the second column. I figure once I have the first formula I can just copy it down the column and use relative referencing to have it reference each successive name as a search string in the data array.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Smith
[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Bush[/TD]
[TD]2017, 2015[/TD]
[/TR]
[TR]
[TD]Donna[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Hayes[/TD]
[TD]2017, 2013[/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]2017, 2014[/TD]
[/TR]
[TR]
[TD]jones[/TD]
[TD]2016, 2013,2012[/TD]
[/TR]
[TR]
[TD]etc.......[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If it is difficult to return multiple results to a cell, then the rresults may extend to cells to the right. Any help is very much appreciated. I have tried combinations of lookup, match, index, etc without results.
Regards,