I don't think there's a magic formula -- just do it a lot, get the speed right and touch down where you planned to touch down. If you don't touch down at the right place on an undulating runway you can get into trouble -- too much float, downsloping etc. -- so it's more important to fly accurately than on 7000 feet of tarmac.
It's down to practice, like everything else.
QDM