Answer:
Assuming you mean in a compound of elements: A name is just what you call it, and the chemical formula is what elements it is made of.
Step-by-step explanation:
Take sodium chloride (Salt) for example. It's name is sodium chloride, but its chemical formula is NaCl. Na= Sodium, and Cl = Chlorine. So one sodium ion and one Chlorine ion create NaCl. Na+Cl=NaCl. And the name for the product of the formula is Sodium Chloride.
Another example is H2O (Water). H=Hydrogen and O=Oxygen. There are 2 hydrogens and one oxygen in H2O. H+H+O=H2O. The name for the formula is water.