Hi @Rumana_Dilshad
We're glad you're here. When you get a chance, please introduce yourself on this forum thread.
If I understand your case you don't need any if statement. You should use relevant and required columns like:
relevantAndconstraintTest.xlsx (8.1 KB)