Regarding formal letters in British English, there is a rule that:
If after Dear we have stated a name, then we should end the formal letter with Yours sincerely. If after Dear we have not stated a name, then we should end the formal letter with Yours faithfully.
However, I am not sure if this applies to American English. When speaking with Americans, it turned out that they don't know about such a rule and don't follow it…