The white neutral wire is shared by both the ceiling fan and the recessed light fixtures.
Wiring recessed lights to existing ceiling fan.
More about wiring recessed lights and ceiling fan switches.
Wiring connections for ceiling fan and recessed lighting.
The procedure involves daisy chain wiring.
Whether you are looking to wire a ceiling fan with lights to one power switch or add a fan in a room without a switch source this guide will teach you how to wire a ceiling fan using four common scenarios and the best wiring methods.
If so then your solution had nothing to do with the original question.
I have a 2 wire coming into switch box from power supply.
Replacing a room s chandelier or ceiling fixture with a ceiling fan that includes its own light fixture is an easy diy project for anyone comfortable with basic electrical improvements.
If you will be installing recessed lighting the wiring will have to be done in series for multiple light fixtures.
If the room has no existing fixture this project is more difficult and entails cutting through the ceiling and installing new wiring and a switch.
This video will show you how to wire a series of recessed light in your ceiling.
I like to use the term daisy chain.
Wiring ceiling fans can seem complicated but the task really just depends on the type of fan you are installing and how you want it to operate.
Then i have 2 wire from ceiling fan to 6 recessed cans that i want to switch from origination point being the switch box and operate fan with pull chain only.
Wiring a series of lights is similar to wiring only one light.
This is all assuming that the power and neutral originates at the wall switch box.
If you like to do your own wiring and have a basic knowledge of residential electrical circuits you ll have an easy time connecting a wall light fixture to an existing wall or ceiling fixture.
How to install ceiling fans and wiring.
I then have 3 wire from switch box to ceiling fan no light fixture on fan.
From that light to the first recessed light to the 2nd 3rd and 4th it appears that you did not wire them so they came on with the fan so you could use the pull chain to turn the fan on and off.
The objective is to get the power from point a the power source to point b the desired location for the ceiling fan.