About now is when I turn to User Defined Functions.
UDFs are VBA Functions kept in a Standard Module, that you can use in Excel Formulas. They are also available to the Insert Function Icon on the Formula Editing Toolbar.
Since the question is "Do these need a degree?" I will name the Function "NeedsDegree" and it will return "Yes" or No" in the Cell the UDF is used in a Formula.
The UDF:
Option Explicit
Public Function NeedsDegree(Nation As Range, Degree1 As Range, Degree2 As Range) As String
'You can add ranges for additional Degrees allowed above, but you must check that cell in the code.
'You can edit the "DegreedNations" and the "DegreesNeeded" as desired without changing any other code
Const DegreedNations As String = "Ghana, Nigeria, Ethiopia, Sudan"
Const DegreesNeeded As String = "Masters, Doctorate"
'Check if nation needs degree
If InStr(DegreedNations, Nation) = 0 Then
NeedsDegree = "No"
Exit Function
End If
'Checks for required degree
If InStr(DegreesNeeded, Degree1) > 0 Then
NeedsDegree = "No"
Exit Function
End If
If InStr(DegreesNeeded, Degree2) > 0 Then
NeedsDegree = "No"
Exit Function
End If
'Nation needs degree but doesn't have one
NeedsDegree = "Yes"
End Function
Inthe cell that you have this formula in
=IF(H3="Ghana",IF(OR(J3="Masters",J3="Doctorate",L3="Masters",L3="Doctorate "),"No","Yes"),"No")
Use this formula instead
=NeedsDegree(H3,J3,L3)
You can treat that UDF formula as you would any other formula, Insert, Fill, Cut and Paste, etc
The UDF Compiles, but I did not create a test worksheet to test it.