I tried entering the name and I tried =name
Instead of your DNR 'nTotalSample' also include the Sheet name

hence input
=Sheet1!nTotalSample