It depends where your range starts. The suggested formula works when the range is the whole sheet or when the range starts at A1.
If the top left of the range is not A1 then you need to change the formula based on the top left cell of sheet_two, e.g. if sheet_two is defined as sheet2!D10:J20 then select that same range on sheet1 and use the formula
=D10<>INDEX(sheet_two,ROW()-ROW($D$10)+1,COLUMN()-COLUMN($D$10)+1)
regards, barry