+ Reply to Thread
Results 1 to 8 of 8

Dynamic range column reference

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Dynamic range column reference

    Hello everybody,

    I hope everyone is well today. I've come to ask for your help once again with a function(s) and formulae that I know very little of.

    Look at the attached sample worksheet attachment below. You will see two sets of data, each bordered off with blue and red borders. If you look at the blue border, my issue is this: I want to be able to return a column reference that returns full columns ("Product A", "Product B", "Product C" and Product D") minus the the empty columns...you know, a dymanic range but with columns.

    To help clarify this, look at the data in the red column. If you go to 'Formulas' and select 'Name Manager' under Defined Names, you will see that there is a range called "Example_List" and if you look at it reference, it has this formula which allows it to be a dymanic range of the yellow shaded area. So when referring to the "Example_List", all empty blank cells are dynamically excluded from the list.

    I'm looking for a formula that with do precisely this, but with the range being the columns in the blue border. So I want to be able to dynamically return all columns that are not empty with a formula. Is this possible? And is so, please provide an example?

    Sample sheet.xlsx

    With kind regards,
    Chris

  2. #2
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: Dynamic range column reference

    Oh and before you ask where I want to return the columns to, returning to a new sheet will be fine ^_^ Thanks

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Dynamic range column reference

    Hi,

    I'm a litte confused here, as I can't see how your desired output ties in with the example you give of an offset, named range.

    Are you simply wanting to create a similarly dynamic, named range which encloses all data in columns B-J which is not empty (e.g. in your attachment this would be B4:E56)?

    If not, and you simply want formula(e) in another sheet to bring in all data from non-blank columns within this range, then why the named range example? Do you require the named range as an added benefit to any proposed solution, or are you insisting upon it?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: Dynamic range column reference

    I mean that Im looking to be able to use an offset array formula that returns all the columns to a new spreadsheet and excludes the empty columns. So that when you fill in or delete data in columns, the columns with data in eill be returned to the new sheet and not the empty ones.*The examples that I put was just an example of something simpler but in the form of a nsmed range for a dropdown list. Sorry if that confused you. I hope this clarify things a bit

  5. #5
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: Dynamic range column reference

    Xor, yes. I am simply looking for a formula in another sheet to bring in all data from non-blank columns within this range. I want to use this formula within the OLSReg function formula. Do you think you could help?

    Quote Originally Posted by XOR LX View Post
    Hi,

    I'm a litte confused here, as I can't see how your desired output ties in with the example you give of an offset, named range.

    Are you simply wanting to create a similarly dynamic, named range which encloses all data in columns B-J which is not empty (e.g. in your attachment this would be B4:E56)?

    If not, and you simply want formula(e) in another sheet to bring in all data from non-blank columns within this range, then why the named range example? Do you require the named range as an added benefit to any proposed solution, or are you insisting upon it?

    Regards

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Dynamic range column reference

    Hi,

    Apologies. If it's a VBA solution you're after then I won't be able to help, though I trust someone with expertise in that area will pick up on this thread shortly.

    Reards

  7. #7
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: Dynamic range column reference

    Hehe no its not a VBA solution I am after. Sorry for the confusion

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Dynamic range column reference

    Are columns always returned to a column which matches their position in the original sheet? Or, if for example you had columns B and E non-empty, but columns C and D empty, the new sheet would return columns B and E adjacent in...which columns on the new sheet? A and B?

    Regards

+ 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. Dynamic Range Column Chart w/ Dynamic Avg Line (Excel 2007)
    By BrokenBiker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-04-2012, 11:40 AM
  2. [SOLVED] Dynamic Range Reference to Another Sheet
    By jasperhuang93 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-20-2012, 09:49 AM
  3. [SOLVED] Dynamic Range Reference, Varying Size of Range
    By cdiaz in forum Excel General
    Replies: 2
    Last Post: 06-30-2011, 02:49 PM
  4. Dynamic range reference
    By qwopzxnm in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-22-2008, 05:15 PM
  5. Reference to a dynamic range
    By Yossi in forum Excel General
    Replies: 2
    Last Post: 04-12-2005, 11:06 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