Excel Formula for Bi-Monthly, Monthly, and Weekly Results
Question details
Return a frequency label based on a total and display it with a corresponding fill color.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet needs to classify totals as Bi-Monthly, Monthly, or Weekly and highlight each result.
- Observed behavior
- Totals up to 20 should display Bi-Monthly in green, totals above 20 and below 70 should display Monthly in amber, and totals of 70 or more should display Weekly in red.
Identify the cell containing the numeric total and choose a separate cell for the result. The steps below use A2 for the total and B2 for the result.
Classify the total and color the result in Excel
Use a nested IF formula to assign each label, then create three conditional formatting rules.
Select B2 and enter =IF(A2<=20,"Bi-Monthly",IF(A2<70,"Monthly","Weekly")). Replace A2 with your total cell if needed.
If you have multiple totals, fill the formula down column B. Select the result range, such as B2:B100.
With the result range selected, go to Home > Conditional Formatting > New Rule. Choose to use a formula, enter =$B2="Bi-Monthly", and set the fill to green.
Add two more formula-based rules through Home > Conditional Formatting > New Rule. Use =$B2="Monthly" with an amber fill and =$B2="Weekly" with a red fill.

Classify and color frequency results in WPS Spreadsheet
Use the same nested IF formula and conditional formatting rules in WPS Spreadsheet to label totals and distinguish them by color.
- 1. Open the spreadsheet: Open WPS Spreadsheet and use File > Open to select your workbook.
- 2. Enter the classification formula: With the total in A2, select B2 and enter =IF(A2<=20,"Bi-Monthly",IF(A2<70,"Monthly","Weekly")). Fill the formula down if needed.
- 3. Add color rules: Select the result range, such as B2:B100, and open Home > Conditional Formatting > New Rule. Create formula-based rules for =$B2="Bi-Monthly", =$B2="Monthly", and =$B2="Weekly", assigning green, amber, and red fills respectively.
- 4. Save the workbook: Choose File > Save As and select XLSX if you want to keep the workbook in Excel format.

Frequently Asked Questions
What happens when the total is exactly 20 or 70?
The formula returns Bi-Monthly for 20 and Weekly for 70. Monthly applies only to values greater than 20 and less than 70.
How can I avoid showing a label when the total cell is blank?
In B2, use =IF(A2="","",IF(A2<=20,"Bi-Monthly",IF(A2<70,"Monthly","Weekly"))). This leaves the result blank when A2 is blank.
Can I apply the rules to more than one row?
Yes. Fill the formula down column B, select the result range starting at B2, and create the three formula-based rules for that range. The row reference will adjust for each row.
Why use exact text formulas for the color rules?
The word Monthly also appears in Bi-Monthly. Rules such as =$B2="Monthly" match the complete result, preventing the Monthly rule from also coloring Bi-Monthly cells.




