Jason Link
New Member
- Joined
- Aug 27, 2018
- Messages
- 2
I am trying to write a macro in order to do the following:
In one workbook, I want to search for data from another workbook and return a value based on the ID # if certain criteria is met.
IE: If it says Melanie Jackson or Hector Hernandez in the October column, I want it to return this value (Melanie Jackson or Hector Hernandez October). If it says no review, I want the macro to look to September and return what I just mentioned. I basically want to keep track of the last time something was reviewed and by whom from a master spreadsheet to individual spreadsheets. I don't know if this can even be done, but it seems like a complex thing of vlookups, IF statements and more. Thank you.
[TABLE="width: 297"]
<colgroup><col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1820;"> <col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;"> <col width="85" style="width: 64pt; mso-width-source: userset; mso-width-alt: 3015;"> <col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;" span="2"> <tbody>[TR]
[TD="width: 51, bgcolor: black"]ID#[/TD]
[TD="width: 87, bgcolor: black"]July[/TD]
[TD="width: 85, bgcolor: black"]August[/TD]
[TD="width: 87, bgcolor: black"]September[/TD]
[TD="width: 87, bgcolor: black"]October[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2007[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2044[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Hector Hernandez[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2067[/TD]
[TD="bgcolor: transparent"]No Review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2070[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2111[/TD]
[TD="bgcolor: transparent"]Hector Hernandez[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 297"]
<colgroup><col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1820;"><colgroup><col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;"><colgroup><col width="85" style="width: 64pt; mso-width-source: userset; mso-width-alt: 3015;"><colgroup><col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;" span="2"><tbody>[TR]
[TD="width: 51, bgcolor: transparent, align: right"][/TD]
[TD="width: 87, bgcolor: transparent"][/TD]
[TD="width: 85, bgcolor: transparent"][/TD]
[TD="width: 87, bgcolor: transparent"][/TD]
[TD="width: 87, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
In one workbook, I want to search for data from another workbook and return a value based on the ID # if certain criteria is met.
IE: If it says Melanie Jackson or Hector Hernandez in the October column, I want it to return this value (Melanie Jackson or Hector Hernandez October). If it says no review, I want the macro to look to September and return what I just mentioned. I basically want to keep track of the last time something was reviewed and by whom from a master spreadsheet to individual spreadsheets. I don't know if this can even be done, but it seems like a complex thing of vlookups, IF statements and more. Thank you.
[TABLE="width: 297"]
<colgroup><col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1820;"> <col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;"> <col width="85" style="width: 64pt; mso-width-source: userset; mso-width-alt: 3015;"> <col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;" span="2"> <tbody>[TR]
[TD="width: 51, bgcolor: black"]ID#[/TD]
[TD="width: 87, bgcolor: black"]July[/TD]
[TD="width: 85, bgcolor: black"]August[/TD]
[TD="width: 87, bgcolor: black"]September[/TD]
[TD="width: 87, bgcolor: black"]October[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2007[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2044[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Hector Hernandez[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2067[/TD]
[TD="bgcolor: transparent"]No Review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2070[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2111[/TD]
[TD="bgcolor: transparent"]Hector Hernandez[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]No review[/TD]
[TD="bgcolor: transparent"]Melanie Jackson[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 297"]
<colgroup><col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1820;"><colgroup><col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;"><colgroup><col width="85" style="width: 64pt; mso-width-source: userset; mso-width-alt: 3015;"><colgroup><col width="87" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3100;" span="2"><tbody>[TR]
[TD="width: 51, bgcolor: transparent, align: right"][/TD]
[TD="width: 87, bgcolor: transparent"][/TD]
[TD="width: 85, bgcolor: transparent"][/TD]
[TD="width: 87, bgcolor: transparent"][/TD]
[TD="width: 87, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]