Disconnect the AC power from the lamp fixture. This prevents you from getting electrocuted when you install the ballast.
Place a step ladder under the light fixture and step up the ladder. Leave the replacement ballast on a sturdy surface until you are ready to retrieve it. Remove the ballast cover by squeezing the side covers together. Set the cover aside.
Remove the fluorescent light bulb. Push inwards on one side of the bulb and use your other hand to pull down on the opposite end. Rotate the bulb if this doesn't work or use a socket wrench and remove the screws if it is connected with screws. Some fluorescent bulbs have different removal instructions. Cut the old ballast wiring with a pair of wire cutters, about 3 inches from the end of the ballast.
Take the bulb in both hands and move slowly down the ladder. Be very gentle with the bulb and set it down on a sturdy surface.
Mount the new ballast in the fixture. Strip the electrical wiring back to about 1/2 inch. Connect the wiring to its matching colored wires in the troffer with twist-wire connectors. Insert the troffer casing and snap it in place until it is firmly fitted.