Wiring a ceiling fan with light to a switch
I am replacing an existing chandelier with a light and ceiling fan. I clipped all of the wires leaving me blind in regard to the old wiring. From the ceiling, I have 3 blacks, 3 whites, and 3 ground. Coming from the fan I have a black, blue, white and ground. In the ceiling there is one hot black, and the others are not, I'm assuming that one of the wires goes to the switch, and the other goes to the porch light. How would I tie all of these wires together so that only the fan goes on/off by the switch. Thanks, Joe