I have 2 sheets, Sheet1 is for the Summary, Sheet2 is the Raw Data.
I need a code that will detect special characters from Sheet2 (only accepts Aa - Zz, 0 - 9, dot, underscore and dash), blank cells and mismatch cells. Please see "error description" for summary of error criteria. If special character is found it will highlight the cell in red and will give a Summary of error in Sheet1. You can download my spreadsheet here. Hoping for your positive response, thank you.
Sheet1(Summary)
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]CHECK ITEMS[/TD]
[TD]OCCURENCE[/TD]
[TD]Error Description[/TD]
[/TR]
[TR]
[TD]1. Contains Special Characters[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1a. in description[/TD]
[TD="align: center"]0[/TD]
[TD]special characters found in description[/TD]
[/TR]
[TR]
[TD="align: right"]1b. in attachment[/TD]
[TD="align: center"]0[/TD]
[TD]special characters found in attachment[/TD]
[/TR]
[TR]
[TD]2. Wrong File Attachment[/TD]
[TD="align: center"]0[/TD]
[TD]if Receipt No. did not match with Attachment filename (ignore the extension)[/TD]
[/TR]
[TR]
[TD]3. Missing Attachment[/TD]
[TD="align: center"]0[/TD]
[TD]if Attachment Column is blank[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2 (Raw Data)
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Receipt No.[/TD]
[TD]Description[/TD]
[TD]Attachment[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-001[/TD]
[TD]TRANSPORTATION ALLOWANCE[/TD]
[TD]ITEM-A-BCD-001.PDF[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-002[/TD]
[TD]FOOD ALLOWANCE%[/TD]
[TD]ITEM-A-BCD-002.XLS[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-003[/TD]
[TD]MISCELLANEOUS[/TD]
[TD]ITEM-A-BCD-003.DOC[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-004[/TD]
[TD]WORKSHOP AND WAREHOUSE[/TD]
[TD]ITEM-A-BCD-004.PDF[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-005[/TD]
[TD]TERMINAL FEE[/TD]
[TD]ITEM-A-BCD-005.JPG[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-006[/TD]
[TD]TRAVEL TAX[/TD]
[TD]ITEM-A-BCD-006.PDF[/TD]
[/TR]
</tbody>[/TABLE]
I need a code that will detect special characters from Sheet2 (only accepts Aa - Zz, 0 - 9, dot, underscore and dash), blank cells and mismatch cells. Please see "error description" for summary of error criteria. If special character is found it will highlight the cell in red and will give a Summary of error in Sheet1. You can download my spreadsheet here. Hoping for your positive response, thank you.
Sheet1(Summary)
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]CHECK ITEMS[/TD]
[TD]OCCURENCE[/TD]
[TD]Error Description[/TD]
[/TR]
[TR]
[TD]1. Contains Special Characters[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1a. in description[/TD]
[TD="align: center"]0[/TD]
[TD]special characters found in description[/TD]
[/TR]
[TR]
[TD="align: right"]1b. in attachment[/TD]
[TD="align: center"]0[/TD]
[TD]special characters found in attachment[/TD]
[/TR]
[TR]
[TD]2. Wrong File Attachment[/TD]
[TD="align: center"]0[/TD]
[TD]if Receipt No. did not match with Attachment filename (ignore the extension)[/TD]
[/TR]
[TR]
[TD]3. Missing Attachment[/TD]
[TD="align: center"]0[/TD]
[TD]if Attachment Column is blank[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2 (Raw Data)
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Receipt No.[/TD]
[TD]Description[/TD]
[TD]Attachment[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-001[/TD]
[TD]TRANSPORTATION ALLOWANCE[/TD]
[TD]ITEM-A-BCD-001.PDF[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-002[/TD]
[TD]FOOD ALLOWANCE%[/TD]
[TD]ITEM-A-BCD-002.XLS[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-003[/TD]
[TD]MISCELLANEOUS[/TD]
[TD]ITEM-A-BCD-003.DOC[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-004[/TD]
[TD]WORKSHOP AND WAREHOUSE[/TD]
[TD]ITEM-A-BCD-004.PDF[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-005[/TD]
[TD]TERMINAL FEE[/TD]
[TD]ITEM-A-BCD-005.JPG[/TD]
[/TR]
[TR]
[TD]ITEM-A-BCD-006[/TD]
[TD]TRAVEL TAX[/TD]
[TD]ITEM-A-BCD-006.PDF[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: