This is going to be difficult for me to describe, I will be happy to send the Excel file to someone to look at.
Sheet 1 contains a ton of information on people that is user-entered and constantly updated and often sorted. (Liaison, District, School, Name, ID, Email, Phone, Semester, Grade, Periods, Start date....)
I want to pull selected information (Liaison, Start date) from sheet 1 onto sheet 2 using three columns (ID, Semester, Grade) that create a unique ID. On the second sheet I also want to include additional user-entered information.
I am using a formula that contains INDEX(MATCH()) to pull information from whatever row it is located at in sheet 1, into the appropriate row in Sheet 2 where the information in the three columns match.
=INDEX(Sheet1!A$2:R$161,MATCH(Sheet2!D2&Sheet2!E2&Sheet2!F2,Sheet1!F$2:F$161&Sheet1!P$2:P$161&Sheet1!Q$2:Q$161,0),18)
I have set absolute references to the main array where the data is contained (Sheet1!A$2:R$161), and with the unique identifying columns that need to match (Sheet2 Column D= ID = Sheet 1 Column F). I do not set absolute references on the cell for
Sheet 2, because I copy/paste the working formula from row 2 down to the 100's of other rows. I want the formula in row 5 to reference row 5, not row 2. So D$2 is not appropriate.
This formula works completely correct in that it extracts the info from whatever row it is on in Sheet 1 into Sheet 2, based on the information that is in row 2 on Sheet 2.
Here is the problem. When I sort the entire workbook based on some column (say ID), cell references remain as if they were locked to the row. If I sort by ID and the info that was on row 2 is now on row 4, the cell references in row 2 refer to row 4, not
row 2. E.g. the following formula is now in row 2. =INDEX(Sheet1!A$2:R$161,MATCH(Sheet2!D4&Sheet2!E4&Sheet2!F4,Sheet1!F$2:F$161&Sheet1!P$2:P$161&Sheet1!Q$2:Q$161,0),3)
Why are the cell references Sheet2!D4&Sheet2!E4&Sheet2!F4 changing?