+ Reply to Thread
Results 1 to 6 of 6

Dynamic Input Range, Range = to Cells >""

Hybrid View

Webby2013 Dynamic Input Range, Range =... 01-26-2013, 04:08 PM
FDibbins Re: Dynamic Input Range,... 01-26-2013, 04:14 PM
Webby2013 Re: Dynamic Input Range,... 01-26-2013, 04:21 PM
Tony Valko Re: Dynamic Input Range,... 01-26-2013, 04:49 PM
Webby2013 Re: Dynamic Input Range,... 01-26-2013, 04:54 PM
Tony Valko Re: Dynamic Input Range,... 01-26-2013, 05:04 PM
  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    Harrogate, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Dynamic Input Range, Range = to Cells >""

    Hello,

    I have an Form Control drop down box, I want to add a dynamic range so it lists only a list of value > "" (greater than blank).

    I've tried the various named range options i.e =OFFSET($A$1,0,0,COUNTA($A$1:$A$40),1) and a number of other methods using =EVALUATE(ie.NamedRange) but none of these work?!

    My problem is, I have a range from 1-40 with formulas, where my formula result is "" (blank) I want my dynamic range to end so its could be A1:A12 where the formula returns "" in cell A13. The list is sorted using an array formula so that the first blank is in effect the last cell of the range - 1.

    Does this make sense? How do I create the input range for this?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Dynamic Input Range, Range = to Cells >""

    Without being able to test this on your data, try something like...
    ">"""" or ">"&"""" you need to put " each side of the ""
    or
    COUNT(B2)=0 adjust range as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    Harrogate, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Dynamic Input Range, Range = to Cells >""

    Am I able to attach an example?

    I have used ">""", I tried this =OFFSET($A$1,0,0,COUNTIF($A$1:$A$40,">"""),1) with no success.

    I am able to get the range using a completely separate type for formula but cant use this in my Input Range, the formula being:

    ="Shee1!"&(ADDRESS(ROW(A1),COLUMN(A1)))&(ADDRESS((ROW(A1)+COUNTIF(A1:A40,">""")),COLUMN(A1)))

    Returning= Sheet!A1:A14 based on the formula it looks at having returned values for 14 of the 40 cells.

  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: Dynamic Input Range, Range = to Cells >""

    If the data in the range is TEXT try this:

    COUNTIF($A$1:$A$40,"?*")

    That will count cells that contain TEXT but will exclude cells with formula blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    Harrogate, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Dynamic Input Range, Range = to Cells >""

    Genius!

    This solved my problem - I would have NEVER thought of that. Thank you

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

    Re: Dynamic Input Range, Range = to Cells >""

    You're welcome. 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)

Tags for this Thread

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