Excel write another cell with =IF

i'm trying to use the function =IF to write in another cell. I have cell A2, if cell have text "test", i want the cell B2 have text "good" else "bad" BUT the =IF function MUST be in the cell B3. So i tryed in cell B3:

=IF(A2 = "test"; B2 = "good"; B2 = "bad")

But nothing happens, cell B2 is normal. Can somebody help me?