Data Validation - Min and Max Help Please

Sbugle

New Member
Joined
Apr 20, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Hi,
I am trying to limit the number entered into two cells. One is the number of times a program can be offered in a year and the other is the number of months it will run during the year. For example, I run a course that goes for 3 months of the year and I run it 4 times a year. Cell A1 is the number of times I run it a year (4) and A2 is the number of times a year I offer enrolments (3). Each of these cells must be a number between 1 and 12 but A1*A2 must not exceed 12.

How do I set up a data validation for this?

Thank you so much! I am going round the bend with this haha.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Use data validation with a custom formula like this:

Code:
=SUM($A$1+$B$1)<=12

Use this data validation in both cells and if you want to set a warning message use the error alert tab.
 
Upvote 0
Use data validation with a custom formula like this:

Code:
=SUM($A$1+$B$1)<=12

Use this data validation in both cells and if you want to set a warning message use the error alert tab.
Thanks mabbutt but it is not the sum that I need it is the multiplication of A1 and A2. When I use this formula it will allow a number greater than 12 in the first cell entered as the other cell is still registering as 0.

For example - I have tried to use the custom data validation of (A1*A2)<=12 into each of the cells but if I am entering into A1 first I can enter 13 because 13*0 is <=12.

Any other suggestions?
 
Upvote 0
Any other suggestions?
Select A1 & A2 and apply this Data validation. Note the setting re 'Ignore blank'.

1622609386104.png
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top