• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Reducing Data Validation List

You are here: Home / Excel Formulas / Reducing Data Validation List
reducing data validation list
October 15, 2019 by Mynda Treacy

Creating a reducing Data Validation list is easy with the new dynamic array formulas.

Let’s say we have a list of jobs currently in progress (column B in the image below). Each contractor can work on no more than two jobs and we have four contractors available (column E).

As we assign contractors to jobs in column C, the data validation list should reduce to only show available contractors (column G).

Your browser does not support the video tag. Watch the video here: https://d13ot9o61jdzpp.cloudfront.net/video/concatenate.mp4

Note: This technique requires Dynamic Array formulas which are currently only available to Office 365 users on the Insider Channels.

Download Workbook

Enter your email address below to download the sample workbook.

By submitting your email address you agree that we can email you our Excel newsletter.
Please enter a valid email address.

Download the Excel Workbook and follow along. Note: This is a .xlsx file please ensure your browser doesn't change the file extension on download.

Watch the Video

Subscribe YouTube

 

Creating a Reducing Data Validation List

We can create reducing data validation lists in three easy steps:

Step 1: Prepare your data – I’ve given my tables names; Jobs and Contractors. Note: the dynamic array formula in column G cannot be stored in a table.

prepare your data

Step 2: Extract a list of available contractors - In cell G5 we use the FILTER function to extract a list of Contractors that are still available i.e. contractors that aren’t already assigned to two jobs in column C.

extract a list of available contractors

The formula, which uses Excel Table Structured References to reference the cells in the tables is:

=FILTER(Contractors[Contractors],COUNTIF(Jobs[Contractor], Contractors[Contractors])<2, "No Contractors Available")

In English it reads:

Return a filtered list based on the list in the Contractors column of the Contractors table (column E), if the count of Contractors in the Jobs table (column C) that matches the Contractors column in the Contractors table (column E) is less than 2. If there are no contractors left that meet the criteria, return the text ‘No Contractors Available’.

Notice that the formula spills the results to the cells below.

Step 3: Insert data validation list in cells C5:C12 that references the list returned in step 2. The trick when referencing a spilled range returned by a dynamic array formula is to use the spilled range operator, #, as shown in the data validation ‘Source’ field below:

insert data validation list

That’s it, you’re all set.

Modify for Single Use

If you only want the contractor assigned to one job, simply modify the formula like so:

=FILTER(Contractors[Contractors],COUNTIF(Jobs[Contractor],Contractors[Contractors])<1,"No Contractors Available")

Likewise, if you want to assign them to 3 or more jobs, simply change the value in the logical test.

Error Checking

You’ll see that the second instance of the names returns a formula error warning, as shown in cell C7 below:

data validation error

This is being returned because once you use a name twice it is no longer in the data validation list in column G. You can simply ignore the errors, or you can turn off the green indicators via the File tab > Options > Formulas:

turn off the green indicators

Thanks

A special thanks to MF Wong for his original solution and to Tony Barker for asking how to extend the example to multiple uses.

reducing data validation list

More Excel Formulas Posts

ai-aided excel formula editor

AI Aided Excel Formula Editor

Save time with this free AI Excel formula editor add-in that writes, edits, improves and interprets formulas for you!
top excel functions for data analysts

Top Excel Functions for Data Analysts

Must know Excel Functions for Data Analysts and what functions you don’t have to waste time learning and why.
excel advanced formula environment

Excel Advanced Formula Environment

Excel Advanced Formula Environment is a long awaited, new improved way to write, name and store Excel formulas.
Pro Excel Formula Writing Tips

Pro Excel Formula Writing Tips

Must know Excel formula writing tips, tricks and tools to make you an Excel formula ninja, including a new formula editor.
excel shaping arrays

New Array Shaping Excel Functions

The Excel Shaping Array Functions makes it easier than ever to reshape arrays and ranges using these purpose built functions
excel nested if functions what not to do

Excel IF Formulas and What Not To Do

Excel IF formulas can get out of hand when you nest too many IFs. Not only do they become unwieldy they’re difficult for anyone to understand
excel image function

Excel IMAGE Function

The Excel IMAGE Function enables you to embed images in a cell using a formula. It supports BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, and WEBP files

Excel VSTACK and HSTACK Functions

New Excel VSTACK and HSTACK functions makes combining arrays of cells easy and with some clever tricks we can extend their capabilities.
identify overlapping dates and times in excel

Identify overlapping dates and times in Excel

How to identify overlapping dates and times in Excel with a formula that checks a range of cells. Works with Dates and Times.
New Excel Text Functions

TEXTSPLIT, TEXTBEFORE and TEXTAFTER Functions

TEXTAFTER, TEXTBEFORE and TEXTSPLIT are exciting new Excel Text functions. They’re fairly self-explanatory, however TEXTSPLIT has some cool features.


Category: Excel Formulas
Previous Post:DGET FunctionExcel DGET Function
Next Post:Extract Values Present in Two Lists

Reader Interactions

Comments

  1. Anthony van Engelen

    November 13, 2019 at 2:18 am

    Thank you! This is really cool; was actually in need of this. Question: Can the same ‘reducing list’ be applied to form-controls (e.g. combo-box)? (asking before playing… 😉

    Reply
    • Catalin Bombea

      November 13, 2019 at 10:07 pm

      Of course, you just have to code it to remove an item from a combo(Combobox1.RemoveItem (IndexNumber) )

      Reply
  2. Jean-Sébastien Quesnel

    October 16, 2019 at 11:31 pm

    Very interesting solution. Is there a way we could push it further and make sure we can’t assign a contractor twice on the same job?

    Reply
    • Mynda Treacy

      October 17, 2019 at 10:16 am

      Hi Jean-Sebastien,

      Great question. I think you’d have to use a helper column to check for duplicate assignments and flag them accordingly. You could also use Conditional Formatting to highlight duplicate assignments. I can’t think of a way for the FILTER function to know in advance which job you’re about to assign a contractor to and then remove them from this list before you click the drop down button.

      Mynda

      Reply
  3. MF

    October 16, 2019 at 8:42 pm

    Hi Mynda,
    Your solution rocks! Thanks for mentioning!
    With Dynamic Arrays, such request become much more “easy” comparing to “old” days of Excel.
    Btw, happy spreadsheet day!
    Cheers,
    MF

    Reply
    • Mynda Treacy

      October 16, 2019 at 9:00 pm

      Thanks, MF, but you did the hard part coming up with the idea 🙂

      Happy spreadsheet day to you too!

      Mynda

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Current ye@r *

Leave this field empty

Sidebar

More results...

Featured Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

Subscribe to Our Newsletter

Receive weekly tutorials on Excel, Power Query, Power Pivot, Power BI and More.

We respect your email privacy

Guides and Resources

  • Excel Keyboard Shortcuts
  • Excel Functions
  • Excel Formulas
  • Excel Custom Number Formatting
  • ALT Codes
  • Pivot Tables
  • VLOOKUP
  • VBA
  • Excel Userforms
  • Free Downloads

239 Excel Keyboard Shortcuts

Download Free PDF

Free Webinars

Excel Dashboards Webinar

Watch our free webinars and learn to create Interactive Dashboard Reports in Excel or Power BI

Click Here to Watch Now

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.