Share via

Excel Data Validation Not Working

Anonymous
2021-04-16T02:15:36+00:00

Hi,

When I use data validation, it will pick up the number I entered if i type it manually in cells. But any number that comes from a formula/Math sum will not be picked up unless I click on the cell; I was wondering if their was a solution where the Data Validation will be picked up from autofil math equasions.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2021-04-16T09:32:30+00:00

    That won't work.

    Let's say you have a formula in C2 that depends on A2 and B2. The values of A2 and B2 are entered by the user.

    You'll have to create data validation rules for A2 and B2 instead of for C2.

    Here is a simple example: C2 contains the formula =SUM(A2:B2).

    You want the sum to be between 0 and 10.

    Select A2 and B2.

    On the Data tab of the ribbon, click Data Validation,

    Select Custom from the Allow dropdown.

    Enter the formula =AND($C2>=0,$C2<=10)

    Activate the Error Alert tab and enter an appropriate error message.

    Click OK.

    Result:

    Was this answer helpful?

    0 comments No comments