Both are correct, you can say substitute for or substitute with.
You can use unsalted butter as a substitute for salted butter in the recipe.
Yes, you can substitute butter for margarine in this recipe.
Yes, you can substitute butter for margarine in this recipe.
Yes, you can substitute butter for oil in this recipe.
Yes, you can substitute butter for shortening in this recipe.
Yes, you can substitute ghee for butter in this recipe.
How much oil will substitute for 8 cups of butter
Yes, you can substitute margarine for butter in no bake cookies.
Yes, you can substitute vegetable oil for butter in this recipe.
Yes, you can substitute butter for vegetable oil in this recipe.
Yes, you can substitute vegetable oil for butter in this recipe.