Hi,
Sorry for interrupting. Does 'Dear Sir or Madam' will do good in a formal letter? Yes, it's fine.
If it's compared to 'To Whom It May Concern', which one is better in a formal letter? If you search for 'To whom it may concern', you'll find lots of...