+ Reply to Thread
Results 1 to 11 of 11

Create delimeted list instead of constant array

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Create delimeted list instead of constant array

    Hi Guys,

    i have formula which i am trying to input into validation list drop down:

    Please Login or Register  to view this content.
    what i am getting is :

    "You may not use reference operators (such as unions, intersections, and ranges) or array constants for conditional formatting criteria"

    as i wrote i can not use constant arary and i should have delimeted list.
    How can i do this with my formula ?

    Can anybody help?

    Jacek

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Create delimeted list instead of constant array

    if the data is sorted, as implied by your use of MATCH (0 & 1), try changing to:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    there is no volatility here, despite use of OFFSET, as the DV formula is only evaluated when the DV list is 'triggered' / 'opened'.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Create delimeted list instead of constant array

    I wonder why you are using two MATCH of same value within a same range, with two types at once: 0 for exact and 1 for not exact match?
    Also the INDEX.

    Besides, you are using =INDEX():INDEX(). Try follow this : INDEX(INDEX():INDEX(),) to establish a new range.
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Create delimeted list instead of constant array

    thank you Guys!!

    XlLent your formula is working.
    Why mine formula didnt work?

    INDEX(INDEX():INDEX(),)
    thanks! Can you please provide any example ? I do not know how to implement?

    Jacek

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,819

    Re: Create delimeted list instead of constant array

    i have formula which i am trying to input into validation list drop down:

    ...

    what i am getting is :

    "You may not use reference operators (such as unions, intersections, and ranges) or array constants for conditional formatting criteria"
    Are you trying to create conditional formatting or data validation? They are not the same thing. The error message suggests the former, but you keep talking about the latter. Which is it?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Create delimeted list instead of constant array

    I don't think the above really matters, you cannot use an INDEX:INDEX construct with either.

  7. #7
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Create delimeted list instead of constant array

    I am trying to do validation list.

    INDEX:INDEX will create constant array?

    I wonder why you are using two MATCH of same value within a same range, with two types at once: 0 for exact and 1 for not exact match?
    i have just learned this method and was using.
    Jacek

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,819

    Re: Create delimeted list instead of constant array

    Quote Originally Posted by XLent View Post
    I don't think the above really matters, you cannot use an INDEX:INDEX construct with either.
    Granted, but why is the OP is trying to create data validation via a CF rule? In other words, why would he get that error message from the DV dialog???

  9. #9
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Create delimeted list instead of constant array

    INDEX:INDEX will create constant array?
    a 'constant array' is, by definition, constant - e.g. =MATCH(A1;{"a";"b";"c"};0)

    what you're trying to do is, rather, build a dynamic list relative to a criteria value
    e.g. pick all values from Column D where associated value in C matches some criteria defined / selected already

    outside of Data Validation (DV) and Conditional Formatting (CF) the INDEX:INDEX route would be preferable to OFFSET, as latter is Volatile.

    fortunately, whilst you cannot use INDEX:INDEX with DV + CF, because DV is non-volatile and CF is super-volatile by default using OFFSET, as an alternative, is not really an issue.

  10. #10
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Create delimeted list instead of constant array

    I am getting error directly from Vaidation List when i am tyring to input formula above.

    XLent,
    thank you for such good explanation.

    with count if i have very big issue which i described in this topic:

    https://www.excelforum.com/excel-for...ml#post5372224

    see post #8.

    Can you please take a look how to solve the issue using countifs function?

    Best,
    Jacek

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Create delimeted list instead of constant array

    I gave it a test again, and below is what I got:
    =INDEX(PivotHelpful!D2:D15;MATCH($A2;PivotHelpful!$C$2:$C$15;0);1):INDEX(PivotHelpful!$D$2:$D$15;MATCH($A2;PivotHelpful!$C$2:$C$15;1);1)
    work, but in condition:

    1) Put it in a User define name (Ctrl-F3 to activate the Name Manager), give it a name, i.e, "Range"
    2) Apply name "Range" into DataValidation
    3) 1st Source list MUST BE in increasing order (to not-exact-match $A2)

    Anyway, OFFSET is usually used for this kind of job, as per #2.
    Attached Files Attached Files

+ 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. Create list of nonzero array values
    By TwistOneUp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-21-2019, 02:48 AM
  2. [SOLVED] Create array of items which are in List A but not present in List B
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2018, 01:28 AM
  3. No VBA method to create a dynamic array constant
    By akshaythakker in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-05-2016, 01:51 PM
  4. [SOLVED] Create ComboBox list from array
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2016, 06:29 AM
  5. [SOLVED] Using an array to create a list of selected items
    By Harribone in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-02-2014, 04:40 PM
  6. [SOLVED] Array formulas to create a sub list - a problem I can't fix
    By SidneyFAlco in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-16-2013, 02:19 PM

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