Compare 2 excel columns, the result will be compared to another column -
i'm pretty new vba, , i'm having problem on comparison of 2 columns (all of data under 2 columns).
the workflow is, column compare column b result put in column c. column (column d) used comparison (all of columns in 1 worksheet).
the logic this:
compare column column b
if column b blank, put "no value here"
if column b has value (sample value: product-id), compare b column d (sample value: pi, abbreviation of product-id)
if matched put "matched".
if no matches, put "no match"
instead of vba, here solution using formulas in worksheet
in column c want apply rule:
if b="" "no value here" else if b=d "matched" else "not matched" end if
you can below formula in column c (then filled down)
=if(b:b="","no value here",if(b:b=d:d,"matched","not matched"))
Comments
Post a Comment