sspatriots
Well-known Member
- Joined
- Nov 22, 2011
- Messages
- 585
- Office Version
- 365
- Platform
- Windows
Hi,
I have this formula that uses structured references to pull dates from another table into a different table. Both tables are formatted as dates. Was hoping someone could tell me why this lookup information wouldn't automatically come across as a date with everything preset to a date format.
Thanks, SS
I have this formula that uses structured references to pull dates from another table into a different table. Both tables are formatted as dates. Was hoping someone could tell me why this lookup information wouldn't automatically come across as a date with everything preset to a date format.
Thanks, SS
VBA Code:
=IF([@[G1
Job '#]]="","",
IF(ISBLANK(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),In_Production__2[#Data],MATCH("Material (Steel)",In_Production__2[#Headers],0),FALSE)),"",
IF(ISERROR(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),In_Production__2[#Data],MATCH("Material (Steel)",In_Production__2[#Headers],0),FALSE)),
IF(ISBLANK(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),Completed__2[#Data],MATCH("Material (Steel)",Completed__2[#Headers],0),FALSE)),"",
IF(ISERROR(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),Completed__2[#Data],MATCH("Material (Steel)",Completed__2[#Headers],0),FALSE)),
IF(ISBLANK(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),In_Production[#Data],MATCH("Material (Steel)",In_Production[#Headers],0),FALSE)),"",
IF(ISERROR(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),In_Production[#Data],MATCH("Material (Steel)",In_Production[#Headers],0),FALSE)),
IF(ISBLANK(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),Completed[#Data],MATCH("Material (Steel)",Completed[#Headers],0),FALSE)),"",
IF(ISERROR(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),Completed[#Data],MATCH("Material (Steel)",Completed[#Headers],0),FALSE)),
UPPER(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),Completed[#Data],MATCH("Material (Steel)",Completed[#Headers],0),FALSE)))),
UPPER(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),In_Production[#Data],MATCH("Material (Steel)",In_Production[#Headers],0),FALSE)))),
UPPER(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),Completed__2[#Data],MATCH("Material (Steel)",Completed__2[#Headers],0),FALSE)))),
UPPER(VLOOKUP(@INDEX(G2JobList,ROW()-2,MATCH("G1" & CHAR(10) & "Job #",G2JobList[#Headers],0)),In_Production__2[#Data],MATCH("Material (Steel)",In_Production__2[#Headers],0),FALSE)))))