Data validation List if "x" is true, and allows values from 0 to 100 if "x" is false ?

CROfin79

New Member
Joined
Apr 24, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
First time caller, long time listener..... I have a well established data validation list function that works great. I am having zero luck trying to add an if statement or other solution that will allow the user to enter values from say 0 to 100 when the if statement is false.. Any help is very appreciated. My Data Validation list funtion is =INDIRECT(SUBSTITUTE($L213," ","_")). When i add an if criteria, i don't know how to allow user to enter a value (????). For example =IF(M3="x",INDIRECT(SUBSTITUTE($L213," ","_")),?????)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Would you be kind enough to help the forum help you? Please post a mini worksheet using the xl2bb add in (link below).
When posting, it may be a good idea to post a mini sheet where the validation is working, and then another where it is not.
 
Upvote 0
Thanks. For Vegatables I can enter % of bushel for Jan-23. However, for Fruits and Bulk, i cannot enter a number >0.

First time using XL2bb, hopefully the below works as intended.


Fruits and Vegis.xlsx
ABCDEFGHIJK
2Product Type Charge Type Product Jan-23 Product Type Charge Type Fruits Vegatables Bulk
3Vegatables Bushel Pct Beans FruitsEachApplesBeansRice
4Vegatables Bushel Pct Beans 0.25VegatablesBushel PctOrangesCarrotsPotatoes
5Bulk Per Pound Rice BulkPer Pound
6Vegatables Bushel Pct Carrots 0.50
7Fruits Each Oranges
8
9
10
11 Beans 00.250.50.751
12 Carrots 00.51
Example
Cell Formulas
RangeFormula
B3:B7B3=VLOOKUP(A3,$F$3:$G$5,2,FALSE)
Cells with Data Validation
CellAllowCriteria
A3:A8List=$F$3:$F$5
C3:C7List=INDIRECT(SUBSTITUTE($A3," ","_"))
D3Custom=IF($B3="Bushel Pct",INDIRECT(SUBSTITUTE($C3," ","_")),D3>=0)
D4:D6List=IF($B4="Bushel Pct",INDIRECT(SUBSTITUTE($C4," ","_")))
D7Custom=IF($B3="Bushel Pct",INDIRECT(SUBSTITUTE($C3," ","_")))
 
Upvote 0

Forum statistics

Threads
1,223,992
Messages
6,175,834
Members
452,674
Latest member
psion2600

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