Switch won't operate ceiling fan and light
I've found a few responses that seem to address my ceiling fan dilemma, but can't figure out exactly how to resolve this issue and this is just the first one. I've recently purchased a home and have been replacing ceiling fans that didn't work properly. The first issue is with the ceiling fan in the master bedroom - it won't operate with the wall switch, which didn't seem to work before. When I removed the old fan there were two sets of wires - 2 black, 2 white and 2 grounds. I connected the 2 black to the black and blue wires from the ceiling fan, the 2 whites to the white on the ceiling fan and the grounds to the green as it had been previously wired. Apparently the old fan wasn't wired correctly. Short of hiring an electrician, what is the simplest way to solve the wiring question. How do I determine which white and/or black wires need to be connected? Thanks in advance.