Formula Errors

Excel Formula for Bi-Monthly, Monthly, and Weekly Results

Amos GikundaAmos Gikunda Nov 18, 2026 869 views

Question details

Return a frequency label based on a total and display it with a corresponding fill color.

Excel Formula for Bi-Monthly, Monthly, and Weekly Results
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.
Before you start

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.

Solution 1Recommended

Classify the total and color the result in Excel

Use a nested IF formula to assign each label, then create three conditional formatting rules.

1
Enter the formula

Select B2 and enter =IF(A2<=20,"Bi-Monthly",IF(A2<70,"Monthly","Weekly")). Replace A2 with your total cell if needed.

2
Select the result cells

If you have multiple totals, fill the formula down column B. Select the result range, such as B2:B100.

3
Create the green rule

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.

4
Create the amber and red rules

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 the total and color the result in Excel
Adjust the rule references: The formulas assume the selected range starts at B2. If it starts in another cell, change B2 in each rule to the first cell of your selected range.
WPS Spreadsheet

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. 1. Open the spreadsheet: Open WPS Spreadsheet and use File > Open to select your workbook.
  2. 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. 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. 4. Save the workbook: Choose File > Save As and select XLSX if you want to keep the workbook in Excel format.
Classify totals as Bi-Monthly, Monthly, or Weekly with an IF formula.Apply green, amber, and red fills with conditional formatting.Open and save Microsoft Excel XLSX files.Work with a familiar spreadsheet interface.
microsoft office alternative - wps office

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.