Lesson 65 of 104 3 min Updated Completed

How to Set a Budget Limit in Excel

A custom Data Validation rule can stop anyone from entering a cost that would push the total over budget. In this example, a birthday party has a budget of $250.

  1. In cell C12, type =SUM(C4:C10) to show the total cost.

  2. Select the cost cells, C4:C10.

    The cost cells C4:C10 selected

  3. On the Data tab, click Data Validation.

    The Data Validation button on the Data tab

  4. On the Settings tab, under Allow, choose Custom. In the Formula box, type:

    =SUM($C$4:$C$10)<=250

    A custom rule that keeps the total at or below 250

    The rule says: an entry is allowed only if the total stays at or below 250. The $ signs keep the same range for every cell.

  5. On the Error Alert tab, type a title (Birthday Party Budget) and a message (You are over the budget limit of $250).

  6. Click OK.

  7. Test it: select C9, type 100, and press Enter.

    The budget error message after entering 100

Result: the total would go over $250, so Excel blocks the entry and shows your message.

To remove the rule, select C4:C10, click Data > Data Validation > Clear All, then OK.