Hello,
I have two spreadsheets within my workbook: a MasterList spreadsheet and a WeeklySchedule spreadsheet. I am trying to create a macro that looks up the first column in the WeeklySchedule and MasterList spreadsheet and auto-populates the other columns based on the MasterList.
In addition, I want to lookup a column within the MasterList. If the column matches with the previous row in the WeeklySchedules, return a NO. If it doesn't match, return YES.
The MasterList looks something like this:
Part ............... RawMaterial .............Diameter.........SetupHours
12345..............65432.....................0.75..................2
54321............. 98765.....................1.......................3
11223..............23456......................0.5 ..................4
33221............. 78910.....................0.75 .................5
.
The WeeklySchedule looks something like this:
Part ........RawMaterial............ Diameter........SetupHours........DiameterChange
12345
33221
11223
I want a macro that looks up the Part on the MasterList and auto-populates the RawMaterial, Diameter, and SetupHours columns based on that Part #.
Then, I want to compare the Diameters. If the previous row is the same Diameter, then return a NO. If the Diameter is different, then return a YES in the DiameterChange column. So, in this example, Part 33221 would have a YES in the DiameterChange column since part 12345 has the same Diameter.
Thank you so much for anyone willing to help me.
Bookmarks