In Excel I know how to calculate a monthly repayment using PMT but is there
any way I can calculate how long a loan would take to pay off )this is a
question I've been asked and I'm not sure whether it can be done or not).

I thought maybe goal seek but you can only use that on a cell containing a
formula.

Any ideas gratefully received.

Many thanks

Anita