+ Reply to Thread
Results 1 to 4 of 4

[HELP] How do I create a list (Data Validation) and add to the list without cell reference

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    19

    [HELP] How do I create a list (Data Validation) and add to the list without cell reference

    The data validation is a list, with this validation rule: "=$G$3:$I$3".

    How do I add "Seven" into it without using an extra cell at all?

    I was thinking of doing "=OR($G$3:$I$3, "SEVEN")" but that didn't work.

    And, another question, how do I add the "FOUR" if it is far away from the $G$3:$I$3 cells?

    Thanks! I've attached a sample so it is easier to understand.
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: [HELP] How do I create a list (Data Validation) and add to the list without cell refer

    Hi,

    You can't use the List feature of Data Validation with non-contiguous ranges, nor with a mixture of range references and delimited text values.

    You have a bit more flexibility in restricting the entries for users, as follows:

    For your first question, change your Data Validation from 'List' to 'Custom' and enter this formula:

    =OR(ISNUMBER(MATCH($B$3,$G$3:$I$3,0)),$B$3="Seven")

    Similarly for your second question: enter the custom Data Validation formula:

    =OR(ISNUMBER(MATCH($B$3,$G$3:$I$3,0)),$B$3=$G$13)

    And if you want all these combined, your formula would be:

    =OR(ISNUMBER(MATCH($B$3,$G$3:$I$3,0)),$B$3=$G$13,$B$3="Seven")

    However, although these solutions will validate your cells accordingly, they will not produce a drop-down list for the user. For these, I'm afraid you will have to either arrange your data in a single row or column or enter all options as text under the List option of Data Validation.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    05-17-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: [HELP] How do I create a list (Data Validation) and add to the list without cell refer

    Thanks but this solution:
    "=OR(ISNUMBER(MATCH($B$3,$G$3:$I$3,0)),$B$3="Seven")"
    I know you stated this, but does anyone know if there is a solution to produce a drop-down list while following all of my constraints?

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: [HELP] How do I create a list (Data Validation) and add to the list without cell refer

    Why can't you create a list for your Data Validation on e.g. another tab? You could even hide this tab if you really wanted. So on sheet2 in cells A1:A5 you could have One, Two, Three, Four, Seven.

    And if you wanted to retain the dynamism of linking entries in this list to Sheet1, then in Sheet2:

    In A1 type this formula: =Sheet1!G3
    In A2: =Sheet1!H3
    In A3: =Sheet1!I3
    In A4: =Sheet1!G13
    In A5: Seven

    Then your Data Validation List is simply: =Sheet2!$A$1:$A$5

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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