The $ will, when preceding the column will anchor it when dragging across the same row; preceding the row it anchors the row when dragging down a column

I just want to get the difference between the two
use
=ABS(Details!$H$7-E17)