Limit the Total Amount Entered in Excel

You can use Excel’s Data Validation to limit the total amount that users enter in a group of cells.

For example, if budget is $3500, you can prevent entries that will go over that total amount.

Budget Data Entry Sheet Setup
Budget Data Entry Sheet Setup

Budget Sheet Setup

Here’s what is on the Budget data entry sheet:

  • Cell F1 contains the total amount allowed for the budget, and the cell is named BudgetTotal.
  • The user can enter budget amounts in cells C3:C7.
  • Cell C8 sums the amounts entered in cells C3:C7.
  • Cell F3 shows the amount remaining (BudgetTotal minus total budgeted in C8).

Add the Data Validation

On the Budget Data Entry Sheet, data validation is applied to cells C3:C7, because this is where the data entry occurs.

  • Select cells C3:C7
  • On the Ribbon, click the Data tab, then click Data Validation. (In Excel 2003, choose Data|Data Validation)

DataValClick

  • Choose Allow: Custom
  • For the formula, use SUM to total the values in the range $C$3:$C$7. The result must be less than or equal to the amount in the BudgetTotal cell.
    =SUM($C$3:$C$7)<=BudgetTotal
  • Click OK to close the Data Validation dialog box.

DataValTotalLimit

Test the Data Validation

After setting up the data validation, you can test it, to make sure that it works as expected.

  1. In cell C7, enter $900, which is higher than the amount remaining.
  2. Press Enter, and you should see an error message.
  3. Click Cancel or Retry, and enter a valid amount.

DataValBudgetError
_______________________

8 thoughts on “Limit the Total Amount Entered in Excel”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.