+ Reply to Thread
Results 1 to 4 of 4

Not calculating dynamic range with blanks

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Not calculating dynamic range with blanks

    Need to count how many records match a selected text in Col A and were received within a certain period in Col B (e.g. since start of year, or in the previous month).

    Col B is a Dynamic range ("Enquiries") which works perfectly.

    As Col A has blanks, I have tried three approaches to define it as a Dynamic List ("RANGES"):

    Approach 1: "=Sheet1!$A$2:INDEX(Sheet1!$A$2:$A$1000,SUMPRODUCT(--(Sheet1!$A$2:$A$1000<>"")))"
    Approach 2: "=Sheet1!$A$2:INDEX(Sheet1!$A:$A,MATCH(9.99999999999999E+307,Sheet1!$A:$A))"
    Approach 3: "=OFFSET(A2,0,0,COUNTA($A$2:$A$10000),COUNTA($A$2:$A$10000))"

    None work.

    Any solutions, pointers or alternatives welcome as ever

    Ochimus
    Attached Files Attached Files
    Last edited by Ochimus; 05-23-2018 at 09:24 AM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,891

    Re: Not calculating dynamic range with blanks

    You should base your PRIME range as per Enquiries column.

    Something like...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also, to ensure both PRIME & Enquiries has same dimension... Enquiries should be...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also, for your COUNTIFS formula, to ensure that it works for any region setting, use Date() function instead of coercing "1Jan" into date.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will return 28.

    See attached.
    Attached Files Attached Files
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,216

    Re: Not calculating dynamic range with blanks

    In Name Manger for "PRIME"

    =Sheet1!$A$2:INDEX(Sheet1!$A$2:$A$1000,LOOKUP("zzzzzz",Sheet1!$A$2:$A$1000,ROW(2:1000)),1)

  4. #4
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Not calculating dynamic range with blanks

    Many thanks to both for coming up with the solutions and pointers.

    Should have thought for myself to use the Col B range to set the last row.

    Can now mark this as "solved"

    Thanks again

    Ochimus

+ 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. Replies: 14
    Last Post: 04-25-2017, 03:11 AM
  2. Remove Blanks With Dynamic Named Range - Error with the formula
    By Tepsjen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-23-2014, 05:34 PM
  3. Dynamic Range Sizes, including blanks
    By Speshul in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-12-2014, 10:52 AM
  4. Dynamic named range, ignoring duplicates and blanks, WITHOUT VBA
    By aimanti in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-23-2013, 06:13 PM
  5. [SOLVED] Ranking a dynamic range containing blanks
    By freud1 in forum Excel General
    Replies: 7
    Last Post: 10-11-2012, 01:53 PM
  6. Ignoring blanks in a dynamic named range
    By jman0707 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2008, 11:10 AM
  7. [SOLVED] Create dynamic dropdown from range including blanks
    By Mike Mick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2006, 12:00 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