I have the following formula which checks cell B7 for a name and then based on the name allows different countries to be put in cell D7. The conditional formatting dialog box accepts the formula, but all inputs come up as invalid and not allowed... What do I need to tweak?

=IF(B2=Lookup!$G$1,BA_Countries,IF(B2=Lookup!$H$1,CM_Countries,IF(B2=Lookup!$I$1,MR_Countries,IF(B2=Lookup!$J$1,SR_Countries,
IF(B2=Lookup!$K$1,TE_Countries,)))))

Also, how do I make it so that if B7 is blank, a list named All_Countries is the data allowed.