+ Reply to Thread
Results 1 to 7 of 7

Dynamic Range [when there are embedded blank cells]

  1. #1
    Forum Contributor
    Join Date
    06-14-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    186

    Dynamic Range [when there are embedded blank cells]

    Hi,

    I am trying to create a dynamic range for a column that contains blank cells.
    I know how to do it when there are no blank cells.
    But with blanks cells, it appears to be a complete different ball game.



    Capture.JPG

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Dynamic Range

    =$a$2:index($a$a, match(9e307, $a$a))
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    06-14-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    186
    Quote Originally Posted by shg View Post
    =$a$2:index($a$a, match(9e307, $a$a))
    no, that doesn't work

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Dynamic Range [when there are embedded blank cells]

    What is the result supposed to be and why?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Dynamic Range [when there are embedded blank cells]

    Do-able with a helper column.... is that OK?

    HELPER (array) can be on another sheet, hidden, etc:

    =IFERROR(INDEX(A:A,SMALL(IF($A$2:$A$200>0,ROW($A$2:$A$200)),ROWS($1:1))),"")

    List for data validation or whatever...

    =OFFSET(Sheet1!$C$2,,,SUMPRODUCT(--(LEN(Sheet1!$C$2:$C$100)>0)))
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 03-18-2018 at 02:00 PM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Dynamic Range [when there are embedded blank cells]

    I forgot to add:

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    there are non-array alternatives, but since we don't know what version of Excel you are using, I ca't use them. Even this one will need modified if you have Excel 2003 and earlier. Please help us to help you: amend your User Profile to show general global location AND your ecel version.
    Last edited by Glenn Kennedy; 03-18-2018 at 02:02 PM.

  7. #7
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Dynamic Range [when there are embedded blank cells]

    =a2:index(a:a,lookup(2,1/(a1:a15<>""),row(a1:a15)))

+ 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. [SOLVED] Dynamic Named range Ignore blank cells
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-17-2017, 05:03 AM
  2. VBA dynamic range till first blank (but cells contain forumla)
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2014, 04:03 AM
  3. dynamic range for non blank cells
    By goldentongs in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 07-05-2014, 07:02 AM
  4. Replies: 2
    Last Post: 11-24-2010, 02:47 AM
  5. Advanced filter with blank cells / Dynamic named range with blank cells
    By Jason_2112 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-15-2010, 12:06 PM
  6. Dynamic Named Range with blank cells
    By tjtjjtjt in forum Excel General
    Replies: 3
    Last Post: 10-05-2005, 04:05 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