How to Organize Excel Tasks by Priority Using the FILTER Function
Question details
The user needs to organize a master list of tasks into separate columns based on specific priority codes (like high, medium, and low) using dynamic array formulas.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Sorting and managing a project task list where tasks are assigned a priority code, and extracting them dynamically into dedicated columns.
- Observed behavior
- Tasks are currently mixed in a single list and need to be cleanly separated into distinct columns based on priority codes using functions, followed by color-coding.
Ensure your task list has a dedicated column for priority codes (e.g., 'C' for High, 'D' for Medium, 'E' for Low) so the formula has a precise criteria range to evaluate.
Use the FILTER Function to Separate Tasks
Extract tasks dynamically into separate columns based on priority codes using Excel's FILTER function.
The FILTER function is a dynamic array formula that allows you to easily extract data based on specific criteria. By setting up a formula for each priority level, tasks will automatically populate in the correct columns.
Locate the column containing your task names (e.g., B4:B20) and the column containing your priority codes (e.g., C4:C20).
Click on the top cell of the column where you want High Priority tasks to appear. Type =FILTER(B4:B20, C4:C20="C") and press Enter. Replace 'C' with your actual high-priority code.
In the Medium Priority column, enter =FILTER(B4:B20, C4:C20="D"). In the Low Priority column, enter =FILTER(B4:B20, C4:C20="E").
Highlight the filtered task results, go to the Home tab, click Conditional Formatting, and set up 'Highlight Cells Rules' to color-code the tasks red, orange, or yellow based on their priority text.

Alternative: Use Dedicated Task Management Tools
For complex workflows, moving tasks out of spreadsheets and into dedicated management tools can provide better visualization.
Organize and Filter Tasks Seamlessly with WPS Office
WPS Spreadsheet fully supports dynamic array formulas, including the FILTER function, allowing you to easily organize and color-code your task lists by priority without paying expensive subscriptions.
- 1. Open your task list: Launch WPS Spreadsheet and open the workbook containing your master task list.
- 2. Select the target cell: Click the topmost cell in the column where you want to display the specific priority.
- 3. Apply the FILTER formula: Type the formula =FILTER(task_range, priority_range="Code") and press Enter.
- 4. Format your results: Use the Conditional Formatting tool in the Home tab to add priority-based colors to your dynamically filtered list.

Frequently Asked Questions
Why is my FILTER formula returning a #CALC! error?
The #CALC! error occurs when the FILTER function finds no matching records (e.g., you have no tasks assigned to that specific priority). You can prevent this error by adding the optional [if_empty] argument, like this: =FILTER(B4:B20, C4:C20="C", "No tasks found").
Can I filter tasks by multiple priorities at the same time?
Yes. You can use the plus sign (+) as an OR logic operator in your criteria. For example, to filter tasks that are either priority C or D, use the formula: =FILTER(B4:B20, (C4:C20="C")+(C4:C20="D")).
How do I filter data from another worksheet?
You can reference another sheet in your FILTER formula by clicking on the sheet tab while writing the formula or by typing the sheet name manually. For example: =FILTER(Sheet1!B4:B20, Sheet1!C4:C20="C").




