+ Reply to Thread
Results 1 to 5 of 5

Array Formula

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Arlington, VA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Array Formula

    I have an array function that fits in one cell, but when I 'run' it, it generates an array that is 3 rows x 1 column. How do I get Excel to return only the 3rd item, but still keep the array formula intact? Thanks, in advance.

    (The reason I want to do this is because the array is generated by a third-party application that has custom formulas.)

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,399

    Re: Array Formula

    Use the INDEX function. =INDEX(yourarrayformula(),3,1)

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Array Formula

    HI Ra@SCM,

    Could you upload a sample workbook....?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Registered User
    Join Date
    04-11-2012
    Location
    Arlington, VA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Array Formula

    Tried the INDEX function, but it won't work...it just returns a #REF error...the array formula is not generating an array inside of the index function is my best guess.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,399

    Re: Array Formula

    According to Excel's built in help files, "Row_num and column_num must point to a cell within array; otherwise, INDEX returns the #REF! error value." Are you certain that your array formula is returning a 3x1 array? Is it possible it is returning a 1x3 array or some other configuration?

    You might try =index(yourarrayformula(),3). According to help, when the input array is 1 column wide (or 1 row tall), you don't need both rownum and columnnum arguments.

+ 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