Hi there, amongst all the data validation rules, this one, which I'm going to discuss is going to be the most interesting one, why? Because you can include formula based logic inside the data validation. And let me give a quick example. Take for instance column, he currently has certain sales allow that we optimize the window. Yeah. And I wish that in column F, whatever discount that I will be putting in, it should not exceed 50% of sales amount, it should be up to 50% of the sales amount.
Now, how do I bring that in this find out, I choose the entire group of sales, I go to data, I go to validation, I click on Data Validation. Then within that, let me put allow custom validation. Okay, it says formula. Now, I'm going to write a formula as if I'm writing this for the first step itself. So equal to This cell, notice I have not put dollars. Why?
Because I want the logic to flow to the next cell vertically to. So this cell is less than or equal to 50% multiplied with the previous cell. As I press OK, it says whatever value is going to give, it should be up to 50% of the previous sell, which is the sales amount. As I press OK, let me test this out. I put 6000 into Aha, this is the error that I'm getting it right now. If I put 5000 perfect, what if I put 5000 into Yes, I'm getting the same error.
So this is how you can prepare a custom a formula based custom data validation, which will allow you to give the formula and that formula will decide how a user may input the data.