Scenario:
Step1:
From the Application getting Dynamic multiple text and updating in one column in Excel as Actual value.
Step2:
And updating Multiple dynamic manual calculation values in another column in the same Excel as the Expected Value.
Step3:
By using If condition How can I compare both values and update the status in Excel
Note: I have used the below condition in IF, Sometimes it’s working as expected but most of the time it’s not working, Directly it goes to ELSE condition, and sometimes, I am facing the below highlighted error in the Screenshot.
If Not String.IsNullOrEmpty(CurrentRow(“ActualAmountPayable”).ToString) AndAlso Not String.IsNullOrEmpty(CurrentRow(“ActualAmountPayablePQM”).ToString)
Then
Perform the comparison here
Else
Handle the case where either value is null or empty
You can compare 2 string values by using the EXACT Function or using the IF Function with SEARCH. The EXACT Function basically compares the two strings and returns TRUE if they are exactly the same and FALSE if they are not. This function is case-sensitive, meaning that it will consider uppercase and lowercase letters as different characters.