The present invention relates to indane derivatives of formula (I), in whichthe variables are as defined in the claims, useful as inhibitors of voltage-gatedsodium and calcium ion channels. The invention also provides pharmaceuticallyacceptable compositions comprising the compounds of the invention and methodsof using the compositions in the treatment of various disorders.