how do I connect a ceiling fan/light when the power feed is at the ceiling box?
Answers:
Very good description! When there is only one cable in the switch box with a red wire then the black is hot and red is the switch leg(called one-upping) and white is the common/neutral. Hook the black and red to the switch and nut the whites together and close up. In the ceiling box The black wire feeds the switch so you tie it to a hot circuit(should already be done but will usually be black) and the red you tie to the hots of the ceiling fan black and blue and white to white and green to green. This is if there is only one switch in the wall! If there are two switches then its a little different. What has happened here with a single switch is that the fan allows for two but aren't necessary. The black wire is usually for the fan motor and the blue(slightly smaller) is for the lights(if there are no lights then don't wire the blue it's there for later light expansion.)
Other answers:
TURN OFF ALL OF THE POWER FIRST
TURN OFF ALL OF THE POWER FIRST
How many switches do you have on the wall? If you have 2 switches, does one work one of the receptacles? If not, then one switch is for the red, and one is for the black wire, and the white is for both ( the common ). I am confused with your explanation. Is the fan already installed? If so look for the wires coming from the fan to your ceiling box. Is one black, the other blue? If so, wire the light kit with the white and blue wires. In general, as a rule, ceiling fan light kit wires are usually blue and white. Hope this helps.
If the white wire in the B-R-W is tied to power at the ceiling box then it is power to the switch. Then the black and red wires correspond to the two switch legs light and fan. Of course, it is possible that the sequence is rearranged in two other ways r-w-b, w-b-r. If your cabling does not have ground wiring you may be forced to ignore the bare/green grounding connections, unless you have metal boxes which you can tie to grounding pigtails, only do this if you have metal conduit or at least metal BX cable. It is unlikely that the neutral was run to a dead end switch. It is even more unlikely if the box for the fan is ``fan-rated".
You can tell by the #10 screws used to mount the fan or fixture strap. If you are going to hang a fan then the box should be fan-rated.