hi,
i need help on a macro that compare 3 selected columns in a list. namely, "Cust Name", "Material" and "Price".(as below "data" )
If "Cust Name" and "Material" match BUT "Price" did not match, output the list of rows (as "result" below).
Macro should cater for more columns and rows of information to be added.
Hope someone can help. thanks.
Data
Regions Sold To Name Cust Name Ship To Name Material Price
CHN WT GP SLTE PRODUCT 1 9.61
CHN RP OTHERS SYD PRODUCT 2 0.35
CHN RP OTHERS SLTE PRODUCT 2 0.40
CHN RP OTHERS SYD PRODUCT 3 0.60
CHN RP OTHERS SYD PRODUCT 3 0.60
CHN RP APT N/A PRODUCT 4 1.52
CHN RP APT N/A PRODUCT 4 1.60
CHN WT APT N/A PRODUCT 5 0.57
CHN RP APT N/A PRODUCT 5 0.57
CHN WT APT N/A PRODUCT 6 0.57
CHN RP APT N/A PRODUCT 6 0.57
CHN RP APT N/A PRODUCT 7 0.57
CHN RP APT N/A PRODUCT 7 0.57
CHN RP APT N/A PRODUCT 8 0.57
CHN RP APT N/A PRODUCT 8 0.57
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.60
TWN RP APT N/A PRODUCT 10 0.57
Results :
Regions Sold To Name Cust Name Ship To Name Material Price
CHN RP APT N/A PRODUCT 4 1.52
CHN RP APT N/A PRODUCT 4 1.60
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.60
TWN RP APT N/A PRODUCT 10 0.57
i need help on a macro that compare 3 selected columns in a list. namely, "Cust Name", "Material" and "Price".(as below "data" )
If "Cust Name" and "Material" match BUT "Price" did not match, output the list of rows (as "result" below).
Macro should cater for more columns and rows of information to be added.
Hope someone can help. thanks.
Data
Regions Sold To Name Cust Name Ship To Name Material Price
CHN WT GP SLTE PRODUCT 1 9.61
CHN RP OTHERS SYD PRODUCT 2 0.35
CHN RP OTHERS SLTE PRODUCT 2 0.40
CHN RP OTHERS SYD PRODUCT 3 0.60
CHN RP OTHERS SYD PRODUCT 3 0.60
CHN RP APT N/A PRODUCT 4 1.52
CHN RP APT N/A PRODUCT 4 1.60
CHN WT APT N/A PRODUCT 5 0.57
CHN RP APT N/A PRODUCT 5 0.57
CHN WT APT N/A PRODUCT 6 0.57
CHN RP APT N/A PRODUCT 6 0.57
CHN RP APT N/A PRODUCT 7 0.57
CHN RP APT N/A PRODUCT 7 0.57
CHN RP APT N/A PRODUCT 8 0.57
CHN RP APT N/A PRODUCT 8 0.57
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.60
TWN RP APT N/A PRODUCT 10 0.57
Results :
Regions Sold To Name Cust Name Ship To Name Material Price
CHN RP APT N/A PRODUCT 4 1.52
CHN RP APT N/A PRODUCT 4 1.60
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.57
TWN RP APT N/A PRODUCT 10 0.60
TWN RP APT N/A PRODUCT 10 0.57