1. This is the way how he did it. (X)

2. This is the way he did it. (O)
3. This is how he did it.(o)
4. This is in which he did it.
5. This is that he did it.
------------------------------
Is that right? What about #4 and #5? Are both ungrammatical as well?

2 and 3 are the only correct sentences.