A Python application that processes and analyzes Excel files containing component specification data, highlighting differences across multiple variants of the same material.
AML Report (Approved Manufacturer List Report) is a utility tool designed to streamline the analysis and comparison of component specifications across different materials and manufacturers. The application reads data from Excel files, identifies variants of the same component, and visually highlights differences in key specifications using color coding.
This tool is particularly useful for:
- Component Comparison: Identify and visualize differences in specifications (Length, Width, Thickness, Tape width, Pitch, Polarity) across multiple variants of the same internal material number
- Data Organization: Extract relevant component information from complex Excel sheets and organize it in a clean, structured format
- Quality Control: Easily spot inconsistencies or variations in component specifications
- Supply Chain Management: Manage approved component variants and their specifications for manufacturing purposes
- Visual Analysis: Color-coded highlighting makes it easy to identify differences at a glance
-
Flexible Column Matching: The application uses intelligent column detection with:
- Exact normalized matching
- Inclusion-based matching
- Fuzzy matching for approximate column names
-
Automatic Grouping: Data is automatically grouped by internal material number for easy comparison
-
Visual Highlighting: Cells with differing values are automatically color-coded with distinct colors for each unique value:
- Soft Yellow (FFF176)
- Coral (FF8A65)
- Mint (A5D6A7)
- Light Blue (90CAF9)
- Lavender (B39DDB)
- Amber (FFD54F)
-
Professional Formatting:
- Excel table styling for enhanced readability
- Auto-adjusted column widths based on content
- Built-in filtering and sorting capabilities
- Organized layout with blank rows separating material groups
-
User-Friendly Interface: Simple file selection dialogs for input and output
-
Select Input File: The application opens a file dialog to select your Excel file
-
Parse Data: Reads the "CE rev" sheet and intelligently matches column headers to extract:
- Int. material no.
- Manufact.
- MPN
- Length
- Width
- Thickness
- Tape width
- Pitch
- Polarity
-
Group and Analyze: Groups data by internal material number and identifies specification variations
-
Apply Formatting:
- Highlights cells with different values using color coding
- Formats data as an Excel table
- Adjusts column widths for readability
-
Save Output: Saves the processed data to a new Excel file with the "CE" sheet name
- Python 3.x
- openpyxl
- tkinter (usually included with Python)
Install the required package:
pip install openpyxlRun the script:
python AML_Report.pyThe application will:
- Open a file dialog for you to select an Excel file
- Process the data from the "CE rev" sheet
- Open a save dialog for you to specify where to save the output file
- Create a new Excel file with organized, color-coded data
The input Excel file must contain a sheet named "CE rev" with the following columns (exact names not required due to flexible matching):
| Column | Description |
|---|---|
| Int. material no. | Internal material identifier |
| Manufact. | Manufacturer name |
| MPN | Manufacturer Part Number |
| Length | Component length specification |
| Width | Component width specification |
| Thickness | Component thickness specification |
| Tape width | Tape width specification |
| Pitch | Tape pitch specification |
| Polarity | Polarity specification |
The output Excel file will contain a "CE" sheet with:
- All specified columns from the input data
- Data grouped by material number with blank row separators
- Specification columns (Length, Width, Thickness, Tape width, Pitch, Polarity) color-coded where variations exist
- Excel table formatting with filtering capabilities
- Auto-fitted column widths
Input (CE rev sheet):
| Int. material no. | Manufact. | MPN | Length | Width | Pitch |
|---|---|---|---|---|---|
| MAT001 | Supplier A | ABC123 | 10mm | 5mm | 1.27 |
| MAT001 | Supplier B | XYZ789 | 10mm | 6mm | 1.27 |
Output (CE sheet): The same data is reorganized with:
- Color coding on the Width column showing different values (5mm and 6mm)
- Blank row separating groups
- Table formatting and filters enabled
- Jesus Enrique Zarate Ortiz
- Luis Fernando Monjaraz Briseño
This tool is provided for internal use in component quality and supply chain management.
- The application is designed to work with the specific "CE rev" sheet name
- Column names will be automatically matched, allowing for minor variations and extra spaces
- The output file is created as a new file, leaving the original unchanged
- Color coding is applied only to rows where variations exist within a material group