I'm replacing a ceiling fan and found the same problem as Cathy Ashley with 3 each white, black and ground coming from ceiling. None were marked, and I couldn't remember how they were originally connected so I connected all white together and all black together and all ground together. I know very little about electricity. When I turned on the power and switch, man it popped and cared me to death. I was standing at the switch and turned it off immediately. I found the senario on this site and tested the wires as instructed. Problem is only two of the black wires are hot and none of the white are hot. So I don't know what to do. Also, I replaced the switch and it didn't have any instructions. Is the black and white wires coming out of the wall supposed to be connected to the switch a certain way?