Data validation range based on another cell contents (2023)

@Brirack77

Split the min and max values into separate columns:

Data validation range based on another cell contents (1)

Next, select D5:D10.

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

Select Decimal from the Allow drop down, and between from the Data drop down.

In the Minimum box, enter the formula =VLOOKUP(C5,$C$15:$F$20,3,FALSE)

In the Maximum box, enter the formula =VLOOKUP(C5,$C$15:$F$20,3,FALSE)

Data validation range based on another cell contents (2)

If desired, activate the Input Message and Error Alert tabs and enter appropriate messages.

Finally, click OK.

See the attached workbook.

FAQs

How do you make data validation depend on another cell? ›

Re: Data validation range based on another cell contents

On the Data tab of the ribbon, click Data Validation. Select Decimal from the Allow drop down, and between from the Data drop down. If desired, activate the Input Message and Error Alert tabs and enter appropriate messages. Finally, click OK.

How do you choose a drop-down list based on another cell value? ›

In the same or in another spreadsheet, select a cell or several cells in which you want your primary drop-down list to appear. Go to the Data tab, click Data Validation and set up a drop-down list based on a named range in the usual way by selecting List under Allow and entering the range name in the Source box.

How do you add an if condition in data validation? ›

In the Data Validation dialog box, you need to configure as follows.
  1. Stay in the Settings tab;
  2. Select List in the Allow drop-down list;
  3. Enter the following formula in the Source box; =IF($E$2=$B$2,$B$3:$B$6,$C$3:$C$6) Copy.
  4. Click the OK button. See screenshot:

How do you make one cell value depend on another in Excel? ›

How to create a conditional formatting rule based on formula
  1. Select the cells you want to format. ...
  2. On the Home tab, in the Styles group, click Conditional formatting > New Rule…
  3. In the New Formatting Rule window, select Use a formula to determine which cells to format.
  4. Enter the formula in the corresponding box.
Mar 22, 2023

How do I make a cell dependent on another cell in Excel? ›

make one cell in an Excel worksheet dependent on another so that you have to fill in the first cell before you can fill in the second
  1. Click on cel B1 and go to Data > Validation > Allow > Custom.
  2. In the formula bar there, type =len(A1)>0.
  3. Uncheck the box for Ignore blank and click on OK.
Apr 4, 2012

How do I limit a drop-down list in Excel based on a cell value? ›

Restrict data entry
  1. Select the cells where you want to restrict data entry.
  2. On the Data tab, click Data Validation > Data Validation . ...
  3. In the Allow box, select the type of data you want to allow, and fill in the limiting criteria and values.

How to count values based on selection of drop-down list in Excel? ›

Type: COUNTIF( Select the range of cells where the items are listed - cells A2:A10 in this example. NOTE: If your list is in a named Excel table, the formula will show the table name and column name -- =COUNTIF(tblExact[Item]

What is a dynamic dropdown? ›

The Static Dropdown is for cases when you, as a form author, want to provide, ahead of time, in Form Builder, the list of all the different choices users will be able to choose from. This is in contrast with the Dynamic Dropdown where the list of choices will be loaded at runtime from a service you provide.

What is dynamic Data Validation in Excel? ›

Dynamic Data Validation. The data validation tool in Excel is a wonderful feature that can help you quickly select an item from a list. However, if the list is growing over time, then you will want the data validation to be dynamic and expand to accommodate the growing list.

How do you use if condition in a drop down list? ›

To create a drop-down list which changes according to what the user selects, you can use an IF statement within the data validation feature. In the Ribbon, select Data > Data Tools > Data Validation.

Can I use an if formula in Data Validation? ›

Just as you can use the IF function on the worksheet, you can use it in a data validation formula.

How do I use VLOOKUP with Data Validation? ›

Open the Excel document where you want to create the dropdown list using the vlookup function. Now select the cell where your list will start, go to the data tab, and then click on data validation. 2. Now, in the displayed box of data validation, you will have to position the mouse cursor on configuration.

Can you have 2 Data Validation in Excel? ›

You can use data validation in Excel to restrict data entry based on another column. You can create two lots of data validation in one column based on another column by using a custom formula.

How do you conditionally format a cell based on another cell? ›

Apply conditional formatting based on text in a cell
  1. Select the cells you want to apply conditional formatting to. Click the first cell in the range, and then drag to the last cell.
  2. Click HOME > Conditional Formatting > Highlight Cells Rules > Text that Contains. ...
  3. Select the color format for the text, and click OK.

How do you return value in another cell if a cell contains certain text in Excel? ›

If cell contains specific text, then return a value

Select the output cell, and use the following formula: =IF(cell="text", value_to_return, ""). For our example, the cell we want to check is A2, the text we're looking for is “example”, and the return value will be Yes.

How do I auto populate Data in Excel based on another cell in another sheet? ›

Or, there's an easier option.
  1. Type = in the cell where you want to reference data from other sheets.
  2. Toggle to the source sheet.
  3. Click the cell being copied.
  4. Hit enter, and the function will automatically populate.

What are the 3 types of Data Validation in Excel? ›

Time - The user should enter a time. Text Length - It validates input based on the length of the data. Custom - It validates the user input using a custom formula.

How to grey out cells based on another column or drop-down list choice in Excel? ›

Select the cells in the column A which we want to grey out. Then select Home > Conditional Formatting > New Rule. In the New Formatting Rule dialogue, choose Use a formula to determine which cells to format.

How to multiselect a dynamically populated dropdown based on another dropdown value selection? ›

It's simple: just add an onClick to call a function every time the options are checked (or unchecked), and then, loop the checkboxes looking for the cheked options, concatenating their texts and showing it at the main label of the select. Same thing is possible if you want to show the number of items selected.

How do I create a dependent drop down list for entire column? ›

Creating a Dependent Drop Down List in Excel
  1. Select the cell where you want the first (main) drop down list.
  2. Go to Data –> Data Validation. ...
  3. In the data validation dialog box, within the settings tab, select List.
  4. In Source field, specify the range that contains the items that are to be shown in the first drop down list.

How do I create a dependent drop down list in multiple rows? ›

Copy drop down lists across multiple rows

To copy the dependent drop down list, let's do a regular copy/pasting: Select the cell with the secondary drop-down (C3) and press Ctrl + C to copy it. Select all other cells where you want the dependent list to appear (C4:C12) and press Ctrl + V to paste the copied contents.

Does Countif work with Data Validation? ›

Lookup by specific criteria using Data Validation

In this case, the COUNTIF function is part of an expression that returns TRUE when a value exists in a specified range or list, and FALSE if not. The COUNTIF function simply counts occurrences of the value in the list. Any count greater than zero will pass validation.

How do I count occurrences of items in a list in Excel? ›

Count how often a single value occurs by using the COUNTIF function. Use the COUNTIF function to count how many times a particular value appears in a range of cells.

How do I capture a selected value from a dropdown? ›

Get the selected value and text of the dropdown list. If we want to get the selected option text, then we should use the selectedIndex property of the selectbox . The selectedIndex property denotes the index of the selected option. Once we get the selected index, we can access the selected option.

What is difference between dropdown and Dropdownlist? ›

The following terms are important to understand as you read this article: A standard list box is a box containing a list of multiple items, with multiple items visible. A drop-down list is a list in which the selected item is always visible, and the others are visible on demand by clicking a drop-down button.

How do I create a dynamic drop-down list in sheets? ›

It only takes a few steps to create a drop-down list in Google Sheets, using the Data Validation tool.
  1. Step 1: Open Data Validation. Select the cell where you want to put a drop-down menu. ...
  2. Step 2: Add Drop-Down Options. From the data validation rules menu, select +Add rule. ...
  3. Step 3: Advanced Options. ...
  4. Step 4: Reuse.
Jan 5, 2023

How do I automate Data Validation in Excel? ›

Select the Data Validation drop-down menu from which you need to choose the Data Validation option.
  1. The Data Validation dialog box will pop up.
  2. From the dialog box, open the Settings menu. Click on the List option given in the Allow drop-down menu.
  3. Enter the name range value '=Fruits'.
  4. Press OK.
Mar 27, 2023

How do you dynamically define a range in Excel? ›

How to create a dynamic named range in Excel
  1. On the Formula tab, in the Defined Names group, click Define Name. Or, press Ctrl + F3 to open the Excel Name Manger, and click the New… ...
  2. Either way, the New Name dialogue box will open, where you specify the following details: ...
  3. Click OK.
Mar 20, 2023

What is dynamic data range in Excel? ›

Dynamic named range in Excel is the ranges that change as the data in the range changes, and the dashboard or charts or reports associated with them. So that is why it is called dynamic. So we can name the range from the name box, so the name is a dynamic name range.

What is the IF then statement in Excel? ›

Use the IF function, one of the logical functions, to return one value if a condition is true and another value if it's false. For example: =IF(A2>B2,"Over Budget","OK") =IF(A2=B2,B4-A4,"")

What is the difference between formula and validation rule? ›

In summary, while validation rules are used to enforce data requirements and constraints, formulas are used to calculate and generate values for fields. Both validation rules and formulas are important tools in Salesforce to ensure data accuracy and automate processes.

Can you use Xlookup in Data Validation? ›

Using INDIRECT-XLOOKUP in data validation list source undesirably allows typing in values that don't pass validation and no error gets throw.

What is the difference between VLOOKUP and Xlookup? ›

To recap, the key differences between an XLOOKUP and a VLOOKUP are: XLOOKUP can look for values to the left and right of the lookup array, while VLOOKUP is limited to only looking for values to the right of the lookup value column.

Can you do data validation based on another cell? ›

Excel data validation based on another cell

To enter a cell reference, either type it in the box preceded by an equal sign, or click the arrow next to the box, and then select the cell using the mouse. You can also click anywhere within the box, and then select the cell on the sheet.

How do you set data validation based on another cell? ›

Re: Data validation range based on another cell contents

On the Data tab of the ribbon, click Data Validation. Select Decimal from the Allow drop down, and between from the Data drop down. If desired, activate the Input Message and Error Alert tabs and enter appropriate messages. Finally, click OK.

Can you make data validation conditional? ›

Conditional data validation means restricting the choices in an Excel drop-down list depending on the value in another cell (or in another drop down, for that matter). Here, we will find out how to create conditional Excel drop down using Data Validation.

How to do data validation based on another data validation in Google Sheets? ›

How to use Data Validation in Google Sheets
  1. Go to the “Data” tab, click “Data Validation”, and get a dialog box on the right side of the sheet.
  2. Click “+ Add rule”.
  3. Select a range where you want to make Data Validation effective.
  4. Choose one of the criteria and input values according to the criterion.
Mar 2, 2023

How to do data validation based on another cell value in Google Sheets? ›

To set up data validation based on another cell in Google Sheets, click on the cell you need, move to the Data menu, select Data validation, set the cell range for the data, then check the box beside Show dropdown list in cell. After this, choose the Show warning option and, finally, press Save.

How do I create a dynamic data validation? ›

Creating a Dynamic Drop Down List in Excel (Using OFFSET)
  1. Select a cell where you want to create the drop down list (cell C2 in this example).
  2. Go to Data –> Data Tools –> Data Validation.
  3. In the Data Validation dialogue box, within the Settings tab, select List as the Validation criteria.

How do I create a dynamic Data Validation List in Google Sheets? ›

How To Create A Drop-Down List In Google Sheets
  1. Step 1: Open Data Validation. Select the cell where you want to put a drop-down menu. ...
  2. Step 2: Add Drop-Down Options. From the data validation rules menu, select +Add rule. ...
  3. Step 3: Advanced Options. ...
  4. Step 4: Reuse.
Jan 5, 2023

How do you restrict value entry input in a cell based on another cell value in Google Sheets? ›

Restrict Cell Values in Google Sheets

In the Data validation window, (1) choose Number for Criteria, and (2) enter upper and lower limits. (3) Check Reject input and (4) Show validation help text, and (5) enter an error message (or leave the default). Finally, (6) click Save.

How do I set indirect Data Validation in Excel? ›

Go to Data –> Data Validation. In the Data Validation dialog box, within the setting tab, make sure List in selected. In the Source field, enter the formula =INDIRECT(D3). Here, D3 is the cell that contains the main drop down.

How do you condition a cell based on another cell in Google Sheets? ›

Use conditional formatting rules in Google Sheets
  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the cells you want to apply format rules to.
  3. Click Format. Conditional formatting. ...
  4. Create a rule. Single color: Under "Format cells if," choose the condition that you want to trigger the rule. ...
  5. Click Done.

How do you count cells if another cell meets criteria Google Sheets? ›

The COUNTIF function in Google Sheets counts the number of cells in a cell range that meet a specified condition. The function is a practical tool when you want to know the number of times a specific criterion is met within a range of cells. You can only test one condition using the COUNTIF function.

How to check if values in one column exist in another column in Google Sheets? ›

To check if a certain value exists in a range of cells, and if it does then return some text, and if it doesn't then return another text, you can use a combination of the IF and COUNTIF functions. In this formula, COUNTIF counts the occurrences of a given value in a range.

References

Top Articles
Latest Posts
Article information

Author: Carlyn Walter

Last Updated: 17/12/2023

Views: 6336

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.