Forum Discussion
Chandrakanth K
Aug 28, 2018Copper Contributor
how to treat the null
Hello All, I need help in comparing two columns and find out if its match or mismatch. And I need to exclude the amount which is in credit and I need to exclude blank cells in Column B & C. The...
- Aug 28, 2018
Hi,
If you mean to exclude if any of B or C is blank when it could be
=IF((A2>0)*LEN(B2)*LEN(C2)*(B2<>C2),"Mismatch","")
and attached
SergeiBaklan
Aug 28, 2018Diamond Contributor
Hi,
If you mean to exclude if any of B or C is blank when it could be
=IF((A2>0)*LEN(B2)*LEN(C2)*(B2<>C2),"Mismatch","")
and attached
- Chandrakanth KAug 28, 2018Copper Contributor
Thank you. This will help.
How do I add trim condition for B2 & C2 in the same formula?
Regards,
Chandrakanth.K
- SergeiBaklanAug 28, 2018Diamond Contributor
If you mean to remove all spaces you may use TRIM(B2) and TRIM(C2) instead of B2 and C2
- Chandrakanth KAug 28, 2018Copper Contributor
Hello Sergei,
Do I need to replace LEN with Trim or do I need to add Trim after Len? I am getting error stating "to many arguments" when I add Trim after Len.
Regards,
Chandrakanth.K