+ Reply to Thread
Results 1 to 4 of 4

How to find the number of rows in an (array formula) range containing evaluated *values*?

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    UK
    MS-Off Ver
    Office 10
    Posts
    27

    How to find the number of rows in an (array formula) range containing evaluated *values*?

    Hi,

    I have an excel sheet with a large range of cells containing an array formula (returning results from an INDEX() query).
    I want to determine the number of (dynamically) returned results in the 'list'.
    The maximum size of the list is hard-coded by the size of my array formula (~1000 rows at present) that presents the matched responses to the INDEX query - but very frequently there'll be far less matches than this maximum figure and I want to find out how many.

    I've tried using COUNTA and COUNTIF but they find the (array) formula in these cells - what I want to count is the actual number of returned / evaluated VALUES that the array formula creates. [I have an ONERROR() formula that handles the fact some formula are unused/un-evaluated, so that whereas they would normally evaluate to 'NOT FOUND' or something, they actually just appear as blank cells.

    How do I find the number of actively returned matches (i.e. correctly evaluated formula) so that I can then dynamically assign other stuff! (e.g. randomly select one of them).


    Very many thanks for any help. It's for a non-commercial educational project.

    UKMathsTeacher

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

    Re: How to find the number of rows in an (array formula) range containing evaluated *value

    What type of data is returned by the formula? If it's text try this...

    =COUNTIF(Range,"?*")

    That will count text values excluding formula blanks "".
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-27-2014
    Location
    UK
    MS-Off Ver
    Office 10
    Posts
    27

    Re: How to find the number of rows in an (array formula) range containing evaluated *value

    Thanks Tony that's exactly what I wanted. Sorry I hadn't been creative enough to think of that possibility for myself.
    That bit's working fine now.

  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: How to find the number of rows in an (array formula) range containing evaluated *value

    Good deal. Thanks for the feedback!

+ 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. Find Unique Values - Need Not Array Formula
    By Neyme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2016, 04:36 PM
  2. Replies: 13
    Last Post: 10-08-2014, 08:35 AM
  3. [SOLVED] SUMIFS with multiple criteria evaluated against array?
    By opheim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 09:03 AM
  4. [SOLVED] Need to find average of an array if corresponding values are within a set range
    By Pallav001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2013, 03:06 AM
  5. Replies: 11
    Last Post: 04-14-2013, 12:02 AM
  6. Loop Array values Through a Range and Hide Rows if a Match
    By therzakid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2011, 01:04 PM
  7. [SOLVED] How to find the number of rows in a named range?
    By Andy Chan in forum Excel General
    Replies: 2
    Last Post: 01-07-2006, 04:45 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