Measure the length from the existing light to where your new light will be. Place an old work electrical box against the wall between two studs where you want to install the light switch.

How To Add A Light
How to add a light switch to an existing light. Position the electrical box in the hole and adjust the arms on the side of the box so that they are tight to the wooden joists on either side. The switch comes first in the new part of the circuit and new 2 wire cable is run to it from the outlet. At the switch cut the cable about 12 in. Tucker speaks to founder of company designed to sway people away from college duration. Strip the ends of the wires and connect them to the fixture. Start by mounting the fixture strap to the box.
Trace the box onto the wall and cut a hole with the drywall saw. If not youll have to wire a longer wire from the light fixture to the switch or from the switch to the power source. Secure the arms to the joists with screws. Cut lengths of 14 gauge white wire green wire and black wire to reach this distance. Or more sheathing visible inside the box. Adding a light fixture mid circuit you can usually install a light fixture between an existing one and the switch by cutting the cable to the existing fixture at the location of the new one inserting the ends of the cable into the electrical box for the new fixture and pigtailing the new fixture onto these wires.
If your wiring is long enough you can use it to run to the switch. From the switch new 2 wire cable is run to the new light location. Of sheathing from the wires and push the cable through the knockout leaving 14 in. Disconnect the wiring from the light fixture and outlet. Install the new light fixture and fish the wires down to the switch box. How to add a switch to a light fixture duration.
In this diagram power is taken from an existing wall outlet for a new switch and light fixture.