When to switch formulas

For those that have switched your formula what made you decide to do so. My 6 week old spit up after every feeding but is gaining weight. Trying to figure out if this is normal or if I should switch her to a sensitive formula.