Basic info: I'm trying to match the date in sheet 1 with the corresponding dollar amount in sheet 2, but I like to pull data from the row above, which represents one day earlier. I'm using INDEX and MATCH functions to accomplish this
Columns
SHEET1 Column A contains dates
SHEET2 Column A also contains dates
SHEET 2 Column B contains dollar amounts
My formulas
INDEX('SHEET2'!A:A,MATCH(A2,'SHEET 2'!B:B,0),-1)
INDEX('SHEET2'!A:A,MATCH(A3,'SHEET 2'!B:B,0),-1)
INDEX('SHEET2'!A:A,MATCH(A4,'SHEET 2'!B:B,0),-1)
and so on . . . .
Problem: I'm getting #N/As and have no idea why. I thought it was a formatting issue, but I don't think it is. I think the formula is constructed correctly. smh
Columns
SHEET1 Column A contains dates
SHEET2 Column A also contains dates
SHEET 2 Column B contains dollar amounts
My formulas
INDEX('SHEET2'!A:A,MATCH(A2,'SHEET 2'!B:B,0),-1)
INDEX('SHEET2'!A:A,MATCH(A3,'SHEET 2'!B:B,0),-1)
INDEX('SHEET2'!A:A,MATCH(A4,'SHEET 2'!B:B,0),-1)
and so on . . . .
Problem: I'm getting #N/As and have no idea why. I thought it was a formatting issue, but I don't think it is. I think the formula is constructed correctly. smh