+ Reply to Thread
Results 1 to 7 of 7

Dynamic Array

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    35

    Dynamic Array

    Is there a way to dynamicaly assign an array based on cell values? For example in the attached spreadsheet would there be a way to assign an array to each group of cells between the header rows?
    Attached Files Attached Files
    Last edited by chad portman; 09-26-2012 at 11:55 AM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Dynamic Array

    Its not clear what your wanting to do? What do you want to do with an array?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Dynamic Array

    Try these Dynamic Named Ranges to start with

    1/. GroupCodes_A
    Refers to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    2/. GroupCodes_B
    Refers to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    3/. GroupCodes_C
    Refers to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    4/. GroupCodes_D
    Refers to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Dynamic Array

    chad portman,

    Yes this can be done. As this is in the Excel Programming / VBA / Macros section, I'm assuming you're looking for VBA code. This code will get each section you're looking for you and display the range address.
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    09-20-2012
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Dynamic Array

    Thank you guys.
    yes tigeravatar i was looking for code i should have mentioned that i guess. I will try this when i get back to the office and let you know if it works.

  6. #6
    Registered User
    Join Date
    09-20-2012
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Dynamic Array

    Ok so tigeravatar's code does define the ranges perfectly but mike7952 makes a point I guess I should explain what I am tryign to do a little better. I have a spreadsheet with account numbers in col A and tier in Col B I am wanting to write a macro that will place all coupons next to the each account based on their tier. I have another post on this site where I tried to explain it but got no responses. I will link that post below as well re-attach both of spreedsheets to see if you guys can help.

    http://www.excelforum.com/excel-prog...html?p=2943807

    Again thanks for all your help.
    Attached Files Attached Files

  7. #7
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Dynamic Array

    chad portman,

    This is designed to be run from the Sample2 workbook. The reason it is 1 to 62, is to accommodate up to 20 coupon offers:
    Please Login or Register  to view this content.

+ 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