+ Reply to Thread
Results 1 to 4 of 4

Enter Array Formula in Name Manager and have it work

  1. #1
    Registered User
    Join Date
    09-09-2015
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    1

    Enter Array Formula in Name Manager and have it work

    I have stolen (collaborated) some code (which to be honest I am still digesting so as to learn how it works), but in the mean time how can I enter this array formula into Name Manager and have it work as an Array Formula. I have created a name called =EmailList this email list is supposed to generate a list of email addr's. I have then used Data Validation to create the dropdown list to ensure that only the entered Email addr's on the User Information sheet is clickable. I created an offset formula that will allow me to generate the dynamic list in the drop down but its not alphabetized its as its all entered. So I have tweaked the Array Formula but when I click the drop down it doesn't work it seems to be acting as a formula instead of an Array Formula. So my question is how can I enter the Array Formula into Name Manager and have it work as an Array Formula?


    Works but is not alphabetized:

    =OFFSET('User Information'!$A$1, 0, 0, COUNTA('User Information'!$A$1:$A$1001))



    Does not work at all:

    =IFERROR(INDEX('User Information'!$A$2:$A$10001,MATCH(SMALL(NOT('User Information'!$A$2:$A$10001="")*IF(ISNUMBER('User Information'!$A$2:$A$10001),COUNTIF('User Information'!$A$2:$A$10001,"<="&'User Information'!$A$2:$A$10001),COUNTIF('User Information'!$A$2:$A$10001,"<="&'User Information'!$A$2:$A$10001)+SUM(--ISNUMBER('User Information'!$A$2:$A$10001))),ROWS('User Information'!$A$2:A2)+SUM(--ISBLANK('User Information'!$A$2:$A$10001))),NOT('User Information'!$A$2:$A$10001="")*IF(ISNUMBER('User Information'!$A$2:$A$10001),COUNTIF('User Information'!$A$2:$A$10001,"<="&'User Information'!$A$2:$A$10001),COUNTIF('User Information'!$A$2:$A$10001,"<="&'User Information'!$A$2:$A$10001)+SUM(--ISNUMBER('User Information'!$A$2:$A$10001))),0)),"")


    Another question instead of doing $A$2:$A$10001 how can i have it do all rows in column 1 of Table1 which is really what 'User Information'!$A$2:$A$10001 really is since there won't be 10001 rows I just put threw a number out there there has to be a way to have the formula figure out end of row is or something like that.


    Thanks in advance but this is the first time I've done something like this so I am really still learning lol.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Enter Array Formula in Name Manager and have it work

    Unfortunately, Name Manager does not allow for Arrayed Formulas. Depending on what you are trying to do, you can create your list elsewhere in your workbook and reference it from there using a dynamic name?
    See attachment where I used the dynamic name to keep the named range equal to actual results.

    President = =Sheet2!$A$2:INDEX(Sheet2!$A8:$A1006, SUMPRODUCT(--(LEN(Sheet2!$A$2:$A$1000)>0))-1)
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Enter Array Formula in Name Manager and have it work

    Quote Originally Posted by ChemistB View Post
    Unfortunately, Name Manager does not allow for Arrayed Formulas.
    Sure it does.

    Name: MyFormula
    Refers to: =SUM(IF($A$1:$A$5="X",$B$1:$B$5))

    However, anything entered in the refedit has to be no more than 255 characters long. The OP's formula is 746 characters long.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Enter Array Formula in Name Manager and have it work

    P.S.

    Just type the formula into the refedit**. You don't have to use CSE to enter it. The formula will automatically be evaluated as an array formula.

    ** refedit is what that little box is called where it says "Refers to".

+ 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. Array formula doesn't work (CTRL+SHIFT+ENTER)
    By Ztv in forum Excel Formulas & Functions
    Replies: 65
    Last Post: 04-07-2021, 12:29 AM
  2. With VBA Enter Ctrl Shift Enter For Array Formula
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-17-2013, 09:02 AM
  3. Enter Array formula with VBA
    By Ricardo Mass in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-07-2013, 09:49 AM
  4. Array Formula: Ctrl+Shift+Enter does not work
    By georgroth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2013, 12:15 PM
  5. Replies: 1
    Last Post: 08-04-2011, 06:17 AM
  6. How Do You Enter Array Formula Via VBA?
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2009, 03:03 PM
  7. Confirming array formula (CTRL+SHIFT+ENTER) doesn't work
    By Vbort44 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2008, 07:18 PM
  8. How to enter an array formula?
    By pikapika13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2006, 10: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