The formula of a covalent network or ionic compound gives the simplest ratio of atoms/ions in the substance. Sometimes the name of the compound gives information about the formula of that compound.
Extensive MMCD synonyms lists support multiple molecular naming conventions ... MMCD's metabolite analysis tool both on mixtures of pure compounds and on metabolite extracts assigned by hand.