I'm trying to find out how to do the inverse of a MOD function.

7mod(23) = 7 That's easy enough in excel to do =MOD(7,23)

However the inverse of 7mod(23) = 10 I haven't found a way to compute the inverse of a mod function with excel.

Does anyone out there know how to do it?