lithocolor
asked on
formula for reporting blanks and matches in excel
In Excel I use this IF formula to determine a comparison of two adjacent cells first to see if they are blank and second to see if they are the same value (but not blank)
I have this array formula which almost works.
=IF(OR(AK2="",AL2=""),"Bot hBlank",IF (AK2=AL2," Same",AK2= AL2))
I am not permitted to change the data so I am looking to see if cells are blank (vs 0) and if not blank are they the same.
example
AK2= John AL2=John should return "Same"
AK2= "" AL2= "" should return BothBlank
however if there is one cell blank and the other one has value it still says both blank.
I think I need to add another argument to return "Mixed" if AK2 <>AL2 however I cant seem to get it right. I believe that <> is excels version of "does not equal".
I have this array formula which almost works.
=IF(OR(AK2="",AL2=""),"Bot
I am not permitted to change the data so I am looking to see if cells are blank (vs 0) and if not blank are they the same.
example
AK2= John AL2=John should return "Same"
AK2= "" AL2= "" should return BothBlank
however if there is one cell blank and the other one has value it still says both blank.
I think I need to add another argument to return "Mixed" if AK2 <>AL2 however I cant seem to get it right. I believe that <> is excels version of "does not equal".
Try this
=IF(AND(AK2="John",AL2="Jo hn"),"Same ",IF(AND(A K2="",AL2= ""),"Both Blank",""))
=IF(AND(AK2="John",AL2="Jo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
=IF(AND(AK2="",AL2=""),"",