+ Reply to Thread
Results 1 to 3 of 3

Using if statements to define multiple ranges in a drop down list. Is there another way?

  1. #1
    Registered User
    Join Date
    09-24-2014
    Location
    Auckland, New zealand
    MS-Off Ver
    2013
    Posts
    50

    Using if statements to define multiple ranges in a drop down list. Is there another way?

    Hi there,

    I am using this formula in the range field of a drop down list to define multiple ranges for the list that are dependant on the choice made in a previous drop down list:

    =
    IF($B$8=$F$3,$C$3:$E$3,
    IF($B$8=$F$4,$C$4:$E$4,
    IF($B$8=$F$5,$C$5:$E$5)))

    $B$8 is the choice made in the previous list. In the first list you select a client company from the list (a simple range defined in the drop down list). This next drop down list then presents 3 contact names for the corresponding company selected from the first list. This range of 3 changes depending on the company selected

    It works but due to the limits on the number of if statements you can have (is it 64?) and also the time in writing them I wanted to try vlookup but was not sure how to apply it in the field of a drop down list range.

    I have attached the example.

    Using if statements to define multiple ranges in a drop down list.xlsx

    Would love to hear from anyone who has any suggestions.
    Thanks!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using if statements to define multiple ranges in a drop down list. Is there another wa

    In data validation use this instead

    =INDEX($C$3:$E$5,MATCH($B$7,$B$3:$B$5,0),)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    09-24-2014
    Location
    Auckland, New zealand
    MS-Off Ver
    2013
    Posts
    50

    Re: Using if statements to define multiple ranges in a drop down list. Is there another wa

    Thank you Ace. That will help me a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to define multiple ranges with AVERAGEIF().
    By Snoddas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2018, 11:50 PM
  2. [SOLVED] Trying to make multiple dependent drop down list with dynamic ranges
    By Gwen@YouWantWhat? in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2012, 12:55 AM
  3. Replies: 4
    Last Post: 06-11-2012, 06:17 PM
  4. Replies: 1
    Last Post: 03-26-2009, 06:00 PM
  5. [SOLVED] Creating drop down list for multiple cell ranges
    By Aaron Saulisberry in forum Excel General
    Replies: 3
    Last Post: 05-01-2005, 02:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1