From what has been described in this question it appears that a neutral wire is not available at the wall switch.
How to connect a ceiling light to a wall switch.
Ceiling lights operate using a switch on the wall or a pull chain that s attached to the fixture.
The fan has power when the switch is on while the fan speed and the light if the fan has one are controlled by pull chains on the fan itself or by a remote control device.
Drill through the floor in the correct stud bay and send the wires for the switch and the light up to the switch using the fish tape.
Adding a wall switch to a ceiling fixture can be done in a matter of hours.
With single switch wiring power to the fan is controlled by a standard single pole wall switch like a regular light switch.
Install a ceiling light and switch.
Split the incoming hot wire into a y and connect it to a terminal on each switch.
The ceiling light fixture requires a neutral for the light to work and your wall switch box does not have a neutral wire available so additional wiring will be required to obtain the neutral wire from the outlet.
In the switch box.
Connect black fan wire to the black ceiling wire.
A single pole wall switch usually has a lever or toggle that completes the circuit when it is flipped up to turn a light device or appliance on.
If the wall is heavily insulated push conduit through the insulation and then feed wires or cable through the conduit.
Wires inside the electrical box at the ceiling and at the.
Connect the electrical wire to your source of power using the pliers and wire nuts and fish it through the joists until it reaches the light switch.
Secure the wire to the joists with electric staples.
Even if a plug in hanging lamp is where you want it built in wiring is safer more convenient and easier on the eyes.
Common applications include ceiling or hallway light switches a cellar or attic light a ceiling fan or chandelier or an outdoor patio light.
No house seems to have exactly the right lights in the right place with convenient safe switches.
Connect white wires together.
The biggest challenge is planning the cable route and running it from the fixture to the new wall switch position.
How to connect ceiling light wires.
Pick a single pole light switch for most applications.