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.
Some covalent molecular compounds have higher melting points ... Both molecules have the same molecular formula (C 2 H 6 O) yet there is a large difference in boiling points.