Excel Formula:
{=IFERROR("("&LEFT(VLOOKUP(VLOOKUP($B$1,IF('[PA Container Schedule.xlsm]Schedule'!$D$2:$D$5000=$B$2,'[PA Container Schedule.xlsm]Schedule'!$A$2:$E$5000,""),5,FALSE),'[PA Container Schedule.xlsm]Schedule'!$E:$J,6,FALSE),3)&") ","("&$D$2&") ")&IFERROR(VLOOKUP($B$1,IF('[PA Container Schedule.xlsm]Schedule'!$D$2:$D$5000=$B$2,'[PA Container Schedule.xlsm]Schedule'!$A$2:$E$5000,""),5,FALSE),$E$2)}
Good afternoon,
I have the above array formula running in C2. The formula is copied down from C2:C69, with absolute references from D2 and E2 respectively. The formula runs down the C column, but we have folks entering data manually into D and E columns. As an example, they'll enter the correct data into cell D6 and E6, but then immediately realize they meant to enter it into D7 and E7 and they'll immediately defer to using cut/paste from D6:E6 to D7:E7, or the like, instead of copy/paste. However, every time they cut/paste data like that, it breaks the array's absolute reference. If they cut from D6:E6 and paste to D7:E7, then the array formula in C7 throws a reference error because it loses the absolute reference to D7:E7 and the array formula in C7 looks like this:
Excel Formula:
{=IFERROR("("&LEFT(VLOOKUP(VLOOKUP($B$1,IF('[PA Container Schedule.xlsm]Schedule'!$D$2:$D$5000=$B8,'[PA Container Schedule.xlsm]Schedule'!$A$2:$E$5000,""),5,FALSE),'[PA Container Schedule.xlsm]Schedule'!$E:$J,6,FALSE),3)&") ","("&#REF!&") ")&IFERROR(VLOOKUP($B$1,IF('[PA Container Schedule.xlsm]Schedule'!$D$2:$D$5000=$B8,'[PA Container Schedule.xlsm]Schedule'!$A$2:$E$5000,""),5,FALSE),#REF!)}
Sure, I could go around and send a company wide email "Hey don't ever use cut/paste" but there's always going to be someone and I'm tired of babysitting the formulas. If the references keep getting killed even though they're absolute, what options do I have for them to continue their ways of cut/paste but also not break the formulas?