Key Facts
- Category
- Conversion & Encoding
- Input Types
- file, textarea
- Output Type
- file
- Sample Coverage
- 4
- API Ready
- Yes
Overview
The XLSX Conditional Formatting Rule tool allows you to programmatically apply complex formatting styles to your Excel workbooks in bulk. By defining rules in JSON, you can automatically highlight data thresholds, visualize trends with data bars, or apply color scales to large datasets without manual editing.
When to Use
- •When you need to apply consistent formatting rules across multiple sheets or large data ranges.
- •When you want to automate the visual identification of outliers, targets, or performance metrics.
- •When you need to standardize the appearance of reports by applying data bars or color scales based on specific cell values.
How It Works
- •Upload your Excel workbook file (.xlsx or .xls).
- •Define your formatting logic in the Rules JSON field, specifying the sheet name, cell range, and rule type.
- •Submit the configuration to process the file and generate a new version with the applied formatting.
- •Download the updated workbook containing your applied conditional styles.
Use Cases
Examples
1. Automated KPI Performance Dashboard
Sales Manager- Background
- The manager needs to format a weekly sales report containing hundreds of entries to highlight performance.
- Problem
- Manually applying colors to cells based on sales targets is time-consuming and prone to human error.
- How to Use
- Upload the sales report and define threshold rules in the JSON input to color-code performance.
- Example Config
-
[ { "sheetName": "2026 Sales", "ref": "H2:H100", "type": "cellIs", "operator": "greaterThan", "formulae": [100000], "fillColor": "#DCFCE7", "fontColor": "#166534" }, { "sheetName": "2026 Sales", "ref": "I2:I100", "type": "dataBar" } ] - Outcome
- Cells exceeding 100,000 are automatically highlighted in green, and column I displays data bars for visual completion tracking.
2. Inventory Risk Assessment
Warehouse Coordinator- Background
- The coordinator tracks stock levels across multiple warehouses and needs to identify low-stock items immediately.
- Problem
- Identifying items with stock levels below 10 units across thousands of rows is difficult to do manually.
- How to Use
- Apply a 'lessThan' rule to the stock quantity column to highlight critical items in red.
- Example Config
-
[ { "sheetName": "Inventory", "ref": "C2:C500", "type": "cellIs", "operator": "lessThan", "formulae": [10], "fillColor": "#FEE2E2", "fontColor": "#991B1B" } ] - Outcome
- All items with stock levels below 10 are instantly highlighted in red, allowing for immediate restocking action.
Try with Samples
json, xml, xlsxRelated Hubs
FAQ
What types of formatting rules are supported?
The tool supports threshold-based cell highlighting, data bars, color scales, and text-contains rules.
Can I apply multiple rules to the same range?
Yes, you can define an array of rules in the JSON configuration to apply multiple formatting layers to the same or different ranges.
Is my original file modified?
No, the tool generates a new processed file, leaving your original source file unchanged.
What format should the Rules JSON follow?
The JSON should be an array of objects, each containing keys for sheetName, ref (range), type, and specific parameters like fillColor or operator.
Are there limits on the file size?
The tool supports files up to 20MB to ensure efficient processing.