Hi All,
I have done the macro code to mark pass or fail for the huge amount of data for the specific column.But i need to make some amendment as the requirement has been attached in the word document.
In the attached Macro d The column BF and BG part alrdy done and i have no issues.But i need to make amendment in the code for for the below requirements.
1. Column BH: dupe rows check If C,D,H,AF,AG are the same, then it Is a dupe (“failed”)
2. Column BJ: for the same vendor names (column H), if the account group [(column D) = either “ZM01” or “ZM07” or “ZM11”] and [“credit check number” and “tax number 2” and “vat number” are unique at the same time], then “OK”, else “FAILED”
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
Example:
In this case we just have ZM01, so it will be clearly OK. (ZM14 and ZM05 can inherit the credit check, vat number and tax number 2 from the ZM01)
In this case the ZM01 and the ZM07 have the same credit check, vat number and tax number 2, so these are “FAILED” (ZM14 and ZM05 can inherit the credit check, vat number and tax number 2 from the ZM01)
3. Column BK: for the same vendor names (column H), if the account group [(column D) = either “ZM14” or “ZM05”] and “credit check number” (column G) is either unique or the same as the “credit check number” assigned to the “ZM01”, then “OK” else “FAILED
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
4. Column BL: for the same vendor names (column H), if the account group [(column D) = either “ZM14” or “ZM05”] and “tax number 2” (column V) is either unique or the same as the “tax number 2” assigned to the “ZM01”, then “OK” else “FAILED
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
Example:
In this case above the “tax number 2” was inherited from the “ZM01” record. The VAT is allowed to be blank (since the is a “US” vendor), the credit check is also inherited from the “ZM01” record. So these are all ok.
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
In this case it is failed, because the ZM05 and the ZM14 are sharing the same Tax number 2.
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
5. Column BM: for the same vendor names (column H), if the account group [(column D) = either “ZM14” or “ZM05”] and “vat number” (column U) is either unique or the same as the “vat number” assigned to the “ZM01”, then “OK” else “FAILED
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
Actually im new to this forum.Hope i will get help from experts
Thanks in advance,
Lax
I have done the macro code to mark pass or fail for the huge amount of data for the specific column.But i need to make some amendment as the requirement has been attached in the word document.
In the attached Macro d The column BF and BG part alrdy done and i have no issues.But i need to make amendment in the code for for the below requirements.
1. Column BH: dupe rows check If C,D,H,AF,AG are the same, then it Is a dupe (“failed”)
2. Column BJ: for the same vendor names (column H), if the account group [(column D) = either “ZM01” or “ZM07” or “ZM11”] and [“credit check number” and “tax number 2” and “vat number” are unique at the same time], then “OK”, else “FAILED”
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
Example:


In this case the ZM01 and the ZM07 have the same credit check, vat number and tax number 2, so these are “FAILED” (ZM14 and ZM05 can inherit the credit check, vat number and tax number 2 from the ZM01)
3. Column BK: for the same vendor names (column H), if the account group [(column D) = either “ZM14” or “ZM05”] and “credit check number” (column G) is either unique or the same as the “credit check number” assigned to the “ZM01”, then “OK” else “FAILED
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
4. Column BL: for the same vendor names (column H), if the account group [(column D) = either “ZM14” or “ZM05”] and “tax number 2” (column V) is either unique or the same as the “tax number 2” assigned to the “ZM01”, then “OK” else “FAILED
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
Example:


In this case it is failed, because the ZM05 and the ZM14 are sharing the same Tax number 2.
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
5. Column BM: for the same vendor names (column H), if the account group [(column D) = either “ZM14” or “ZM05”] and “vat number” (column U) is either unique or the same as the “vat number” assigned to the “ZM01”, then “OK” else “FAILED
//blanks are acceptable with the following conditions: If “US”, column U is allowed to be blank. If “GB” column V is allowed to be blank. Credit check has to be always filled in//
Actually im new to this forum.Hope i will get help from experts
Thanks in advance,
Lax