Hey Guys,
Below is the scenario to write VBA code:-
> If Score is > 900
> If Income is > 600000
> If Occupation = "Salaried" and Income > 500000
> If Marital Status = "Single"
> If Own house = "yes"
1, If any one of the above criteria met result should be "Loan Eligible"
2, If any one of the above criteria not met "Not Eligible"
Below is my code where "Not Eligible" is not working:-
Function Loan(Cibilscore As Double, Ownhouse As String, Occupation As String, Marritalstatus As String, Income As Double)
If Cibilscore > 900 Then
If LCase(Ownhouse) = "yes" Then
If LCase(Occupation) = "salaried" And Income > 60000 Then
If LCase(Marritalstatus) = "single" Then
Loan = "Eligible"
End If
End If
End If
Else
Loan = "Not Eligible"
End If
End Function
Below is the scenario to write VBA code:-
> If Score is > 900
> If Income is > 600000
> If Occupation = "Salaried" and Income > 500000
> If Marital Status = "Single"
> If Own house = "yes"
1, If any one of the above criteria met result should be "Loan Eligible"
2, If any one of the above criteria not met "Not Eligible"
Below is my code where "Not Eligible" is not working:-
Function Loan(Cibilscore As Double, Ownhouse As String, Occupation As String, Marritalstatus As String, Income As Double)
If Cibilscore > 900 Then
If LCase(Ownhouse) = "yes" Then
If LCase(Occupation) = "salaried" And Income > 60000 Then
If LCase(Marritalstatus) = "single" Then
Loan = "Eligible"
End If
End If
End If
Else
Loan = "Not Eligible"
End If
End Function