Data Validation

VinceF

Board Regular
Joined
Sep 22, 2007
Messages
172
Office Version
  1. 2016
Platform
  1. Windows
Good Morning,

This should be an easy one for the experts....thanks in advance.

I believe this can be accomplished with Data Validation

Cell N3 contains a DDL with Blue, Blue/Wh, White
Based on the selection from cell N3 I'd like it to limit the maximum entry number in Cell H3
For example: If BLUE is selected the maximum number in cell H3 would be limited to 14.3, if Blue/Wh is selected max number allowed in H3 would be limited to 16.8

VinceF
Office 2016
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Something along these lines?

1690282622252.png

EDIT: Oops, Switch may not be out for 2016, try a nested IF instead i.e. =IF(N3="Blue",14.3,IF(N3="Blue/WH",16.8,0))
 
Upvote 0
Solution
Thank you for the reply..
I had tried this formula IF(N3="BLUE",MAX(14.3)) but that gave me a "doesn't match validation restrictions" error message.

Note: H3 cell could contain a lower number than 14.3, I'd like to make it so that 14.3 is the highest number allowed.

Thanks
 
Upvote 0
Thank you for the reply..
I had tried this formula IF(N3="BLUE",MAX(14.3)) but that gave me a "doesn't match validation restrictions" error message.

Note: H3 cell could contain a lower number than 14.3, I'd like to make it so that 14.3 is the highest number allowed.

Thanks
That box is already a maximum box. No need to MAX() anything. Just an IF functions which returns the highest values should suffice. If you want to manipulate minimums, do it in the minimum box.

Your formula needs to start with an "=" sign, in case it wasn't obvious to you.
 
Upvote 0
You are correct, if I use the "decimal" function in Data Validation I can easily limit the low and high numbers. However the maximum input allowed is based on the selection of cell N3.
For example: If BLUE is selected in cell N3 the maximum number in cell H3 would be limited to 14.3, if Blue/Wh is selected in cell N3 the maximum number allowed in H3 would be limited to 16.8
 
Upvote 0
Anonymous1378,
After working a bit with your suggestion "=IF(N3="Blue",14.3,IF(N3="Blue/WH",16.8,0))" it worked perfectly. Thank you for taking the time to solve my problem, very much appreciated.

VinceF
 
Upvote 0

Forum statistics

Threads
1,215,325
Messages
6,124,254
Members
449,149
Latest member
mwdbActuary

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