Formal Letters

Regarding formal letters in British English, there is a rule that: If you have stated a name after 'Dear', you should end the formal letter with 'Yours sincerely'. If you have not stated a name after