Formula Errors

How to Calculate Expenses by Due Date and Occurrence in Excel

Elise WilliamsElise Williams Oct 28, 2026 872 views

Question details

Allocate and calculate expenses across first-of-month and end-of-month periods based on specific due dates and payment frequencies like Weekly, Bi-Weekly, Monthly, or Yearly.

How to Calculate Expenses by Due Date and Occurrence in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Balancing a budget across different pay periods by distributing expenses depending on how often they occur and what day of the month they are due.
Observed behavior
Requires a reliable formula to automatically separate expenses due before the 15th from those due on or after the 15th, applying the correct frequency multiplier to the base amount.
Before you start

Ensure your expense tracking table has distinct columns for the Occurrence Frequency (e.g., Monthly), Due Date (just the day number), and the Base Expense Amount.

Solution 1Recommended

Allocate Expenses Using IF, AND, OR, and VLOOKUP

Combine conditional logic (IF, AND, OR) with a VLOOKUP function to accurately distribute expenses into the correct half of the month based on a multiplier table.

This method relies on creating a reference table that assigns a mathematical multiplier to each frequency type (e.g., Weekly = 4, Monthly = 1). The nested IF formulas then check the due date and multiply the base expense accordingly.

1
Create the Multiplier Reference Table

On a new or existing sheet, create a small two-column table. In the first column, list your frequencies ('Weekly', 'Bi-Weekly', 'Monthly', 'Yearly'). In the second column, list their respective multipliers (e.g., 4, 2, 1, 1). Highlight this table, click the Name Box in the top-left corner next to the formula bar, type 'MultFactorTable', and press Enter.

2
Set Up the First-of-Month Formula

Assuming C2 is Frequency, D2 is Due Date, and E2 is Amount. In your first-of-month column (e.g., for days 1-14), enter the formula: =IF(AND(OR(C2="Monthly",C2="Yearly"),D2>=15),0,E2*VLOOKUP(C2,MultFactorTable,2,FALSE)). This assigns a 0 if a monthly or yearly expense is due on or after the 15th, and calculates the amount otherwise.

3
Set Up the End-of-Month Formula

In your end-of-month column (e.g., for days 15 and onward), enter the formula: =IF(AND(OR(C2="Monthly",C2="Yearly"),D2<15),0,E2*VLOOKUP(C2,MultFactorTable,2,FALSE)). This ensures expenses due before the 15th are zeroed out for this column, while applying the multiplier to qualifying expenses.

4
Calculate the Total Period Expense

In an adjacent column for the total calculation, simply add the two period columns together using the SUM function, for example: =SUM(G2:H2). Drag these formulas down to apply them to all rows.

Allocate Expenses Using IF, AND, OR, and VLOOKUP
Budget Successfully Balanced: Your expenses are now accurately split between the 1-14 and 15+ pay periods, balancing your books automatically based on their due date and occurrence frequency.
Manage Your Budget with WPS Spreadsheet

Easily Track and Automate Expenses with WPS Office

WPS Spreadsheet is a powerful, free tool for managing personal or business finances. With full support for advanced logical and lookup functions, budgeting becomes seamless and highly automated.

  1. 1. Open Your Budget File: Launch WPS Spreadsheet and create a new budgeting worksheet or open your existing Excel (.xlsx) expense file.
  2. 2. Define Your Multiplier Name Range: Select your frequency multiplier table, go to the Formulas tab, and click 'Name Manager' to define the range as 'MultFactorTable'.
  3. 3. Apply Budgeting Formulas: Use the formula bar to insert the IF and VLOOKUP logic. WPS Spreadsheet will provide helpful syntax prompts as you type.
  4. 4. Save and Export: Save your completed budget tracker directly to your device or WPS Cloud in full .xlsx format for cross-platform sharing.
Fully compatible with Microsoft Excel formulas, functions, and .xlsx file formats.Built-in Name Manager for easily defining reference ranges like multiplier tables.Lightweight and completely free to use, ideal for managing complex expense trackers.Intuitive interface that makes nesting complex formulas like IF and VLOOKUP effortless.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my VLOOKUP returning an #N/A error in the expense column?

An #N/A error usually indicates that the exact text in your Occurrence Frequency column (e.g., 'Weekly') does not match the text in your 'MultFactorTable'. Check both locations to ensure there are no hidden trailing spaces or typographical errors.

How do I handle expenses that are due exactly on the 15th?

In the provided formula, 'D2>=15' includes the 15th of the month in the end-of-month logic, effectively removing it from the first-of-month period. If you prefer the 15th to be allocated to the first half of the month, change the logic to 'D2>15' and 'D2<=15' respectively.

Can I use XLOOKUP instead of VLOOKUP for this calculation?

Yes. If your version of Excel or WPS Spreadsheet supports the XLOOKUP function, you can replace 'VLOOKUP(C2,MultFactorTable,2,FALSE)' with 'XLOOKUP(C2, FrequencyColumn, MultiplierColumn)' for a more flexible and robust lookup process.

What happens if I leave the Due Date column blank?

If the Due Date cell is blank, Excel treats the value as 0. Because 0 is less than 15, the formulas will allocate the expense to the first-of-month period by default. Always ensure accurate dates are entered for correct allocation.