There are 2 neutral wires and 3 black ones and a ground. The ceiling light is on and hard wired in and I can't turn it off. The adjacent bedrooms are without power.
I know I scrambled the wires so how do I determine which goes where?
Home Improvement Stack Exchange is a question and answer site for contractors and serious DIYers. It only takes a minute to sign up.Sign up to join this community
Familiarise yourself with typical ways of wiring lights in your country and locale. There are often one standard way of doing things but there are very often other ways of wiring things up that you need to be aware of in case you encounter them. Search related questions here for diagrams.
If you dont have a good tool go and spend $10 on something that might save your life and which will help you work this out.
Familiarise yourself with safe methods of working with electricity. You probably want someone else around to call an ambulance if you get electrocuted. Make sure anyone else in the house knows you are working on the circuit so that they don't do something silly like turning a breaker back on while you are working on a circuit. Make sure you know how to test your tester each time you perform a test.
To work out which wire goes where, apart from matching the wiring colours to known standards, I would