Color = SWITCH (TRUE (), [Overall Tickets Completed] < ( sum (Query1[Avg25B])- 2 ), "BLUE" , [Overall Tickets Completed] >= ( sum (Query1[Avg25B])- 2 ) && [Overall Tickets Completed] < ( sum (Query1[Avg25L])- 2 ), "LIGHT BLUE" ,, To sort data by font color in Excel, follow these steps: Select the column with the text you want to sort. Go to the Sort and Filter menu and select Custom Sort. In the Sort On dropdown, choose Font Color. Select the color and define the sort order (e.g., On Top)., Follow these steps to sort by color using the Data tab. Select the cells you need to be sorted. You can select either a single cell or a range within your table. Excel will try to guess what cells you want to be sorted if you select anything less than the full table. Select the Sort command., Simply click on the AutoFilter arrow next to the column heading you want to sort by, choose Sort by color from the drop down menu, and then select the color of cells that you want to be on top or at the bottom., Select "Column A" (or any column with the sorting font color) in the Column Sort by box; 2. Select "Font Color" in the Sort On box; 3. Select a color (e.g., red) in the Order box; 4. Select "On Top" or "On Bottom" in the last box. You can add more levels if you have more than one Font Color. Step 4: Click "OK" at the bottom and the font in red , Go to the Data tab and click on the "Sort" button to open the Sort dialog box. This box allows you to specify how you want to sort your data, including by color. In the Sort dialog box, click on the "Sort On" dropdown menu and select "Cell Color.".