Hello,
I'm trying to do a nth occurrence lookup (probably with a macro), among an array of data and returning the value from a specific column within the same row.
I'm trying to look up student scholarship assignments from the following data:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Scholarship Name
[/TD]
[TD]Awardee Student#1
[/TD]
[TD]Awardee Student#2
[/TD]
[TD]Awardee Student#3
[/TD]
[TD]Awardee Student#4
[/TD]
[/TR]
[TR]
[TD]Louis Jones Scholarship
[/TD]
[TD]Jonah Band, Class of 2017
[/TD]
[TD]Sean Ascot, Class of 2017
[/TD]
[TD]Ashley Verra, Class of 2015
[/TD]
[TD]Josh Dean, Class of 2018
[/TD]
[/TR]
[TR]
[TD]Blank-Smith Scholarship
[/TD]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]Jonah Band, Class of 2017
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Foundation Scholarship
[/TD]
[TD]John Smith, Class of 2015
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class of 1910 Scholarship
[/TD]
[TD]Jonah Band, Class of 2017
[/TD]
[TD]Nikki McGuire, Class of 2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dr. Doug Scholarship
[/TD]
[TD]Josh Dean, Class of 2018
[/TD]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]John Smith, Class of 2015
[/TD]
[TD]Sean Ascot, Class of 2017
[/TD]
[/TR]
[TR]
[TD]Daniel Scholarship
[/TD]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]Sean Ascot, Class of 2017
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
On a different tab, using the student name as the lookup, the 1st occurrence of the scholarship name would appear in column B, the second scholarship in column C, etc. It would always be returning the data from the scholarship name column.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Student Name for lookup
[/TD]
[TD]Scholarship Assignment #1
[/TD]
[TD]Scholarship Assignment #2
[/TD]
[TD]Scholarship Assignment #3
[/TD]
[/TR]
[TR]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]Blank-Smith Scholarship
[/TD]
[TD]Dr. Doug Scholarship
[/TD]
[TD]Daniel Scholarship
[/TD]
[/TR]
[TR]
[TD]John Smith, Class of 2015
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm rather new to using macros, my experience being limited to cutting and pasting code. So I'm hoping for some assistance.
Thank you for your help!
I'm trying to do a nth occurrence lookup (probably with a macro), among an array of data and returning the value from a specific column within the same row.
I'm trying to look up student scholarship assignments from the following data:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Scholarship Name
[/TD]
[TD]Awardee Student#1
[/TD]
[TD]Awardee Student#2
[/TD]
[TD]Awardee Student#3
[/TD]
[TD]Awardee Student#4
[/TD]
[/TR]
[TR]
[TD]Louis Jones Scholarship
[/TD]
[TD]Jonah Band, Class of 2017
[/TD]
[TD]Sean Ascot, Class of 2017
[/TD]
[TD]Ashley Verra, Class of 2015
[/TD]
[TD]Josh Dean, Class of 2018
[/TD]
[/TR]
[TR]
[TD]Blank-Smith Scholarship
[/TD]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]Jonah Band, Class of 2017
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Foundation Scholarship
[/TD]
[TD]John Smith, Class of 2015
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class of 1910 Scholarship
[/TD]
[TD]Jonah Band, Class of 2017
[/TD]
[TD]Nikki McGuire, Class of 2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dr. Doug Scholarship
[/TD]
[TD]Josh Dean, Class of 2018
[/TD]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]John Smith, Class of 2015
[/TD]
[TD]Sean Ascot, Class of 2017
[/TD]
[/TR]
[TR]
[TD]Daniel Scholarship
[/TD]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]Sean Ascot, Class of 2017
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
On a different tab, using the student name as the lookup, the 1st occurrence of the scholarship name would appear in column B, the second scholarship in column C, etc. It would always be returning the data from the scholarship name column.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Student Name for lookup
[/TD]
[TD]Scholarship Assignment #1
[/TD]
[TD]Scholarship Assignment #2
[/TD]
[TD]Scholarship Assignment #3
[/TD]
[/TR]
[TR]
[TD]Jane Smith, Class of 2018
[/TD]
[TD]Blank-Smith Scholarship
[/TD]
[TD]Dr. Doug Scholarship
[/TD]
[TD]Daniel Scholarship
[/TD]
[/TR]
[TR]
[TD]John Smith, Class of 2015
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm rather new to using macros, my experience being limited to cutting and pasting code. So I'm hoping for some assistance.
Thank you for your help!