+ Reply to Thread
Results 1 to 7 of 7

General question about arrays

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    Wilmington, Delaware, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    General question about arrays

    Hi. I am a relative newcomer to using combination formulas and arrays so please bear with me. I want to retrieve the first value, a number, in a column of 10 rows that contains blanks. The blanks can be in various cells. I used index(array,match(false,isblank([same] array),0) to get the first nonblank value in the column. It worked when the first row in the array was populated and didn't work if it was not. So I have a couple of questions. Do all formulas containing arrays have to have the first cell in the array populated? If so, how do I work around that? Are there other functions I should be using? I have tried some others like true,isnumber instead of false,isblank with the same result hence the general question.

    Thanks for your help,
    Marty

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

    Re: General question about arrays

    Try..

    =INDEX(D1:D10,MATCH(TRUE,D1:D10<>"",0))

    Array entered
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  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: General question about arrays

    You can do it using the logic of finding the Boolean FALSE but it sounds like yours didn't work because the cells contain formula blanks "".

    Try it like this:

    =INDEX(A1:A10,MATCH(FALSE,A1:A10="",0))

    Another one:

    =INDEX(A1:A10,MATCH(TRUE,ISNUMBER(A1:A10),0))

    Both are still array formulas.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    04-29-2014
    Location
    Wilmington, Delaware, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: General question about arrays

    Thanks Ace and Tony. I did try those and same thing. No luck. Formula Test.xlsx

    I set up this little spreadsheet to test what I'd like to do. Different workbook, typed everything in manually. Same result. Hopefully you will be able to see it. I'd appreciate any comments if I'm doing anything wrong.

    Thanks again,
    Marty

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

    Re: General question about arrays

    It looks like you want to extract each number from a column and concatenate them into a text string?

    If that's the case and you have more than a couple of numbers then a VBA function would be needed.

    I'm not much of a programmer so someone else will need to help you with that.

  6. #6
    Registered User
    Join Date
    04-29-2014
    Location
    Wilmington, Delaware, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: General question about arrays

    Thanks again Tony. I was afraid that to do this more simply, VBA would be needed. I am not a programmer either. I think I can tackle this with a really long if statement though. That's what I wanted to avoid.

    Thanks again,
    Marty

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

    Re: General question about arrays

    Try posting this question in the Excel Programming / VBA / Macros forum.

    Include a link to this thread so folks can see what has already been discussed.

+ 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. General Questions about Arrays
    By pat3white in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2013, 02:57 PM
  2. general question :Multi-dimensional arrays
    By brillig12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2010, 06:58 AM
  3. [SOLVED] General Question
    By Ragdyer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM

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