+ Reply to Thread
Results 1 to 5 of 5

Dynamic Formula Array

  1. #1
    Registered User
    Join Date
    05-18-2011
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    24

    Dynamic Formula Array

    Hi Guys.

    I want to populate a range of cells using a formula array and a named range.

    I have a cell(A) that changes depending on other selections.

    The cell(A) value will always equal the name of a separate named range. For example, cell(A) value is "AU_ARE_22_18_AL3_AL3_R_13_3__ANSI_61_". This corresponds with a range(B) named "AU_ARE_22_18_AL3_AL3_R_13_3__ANSI_61_".
    This range is made up of two columns, (1)part number and (2)quantity and can have up to 20 rows.

    I want to use the formula array function to populate another set of cells (two columns also ^20 rows) based on the named range(B) derived from cell(A) e.g. "AU_ARE_22_18_AL3_AL3_R_13_3__ANSI_61_"

    This is a bill of materials so i need it to change based on the cell(A) value.

    Is there a way for the formula array to update automatically when cell(A) value changes to correspond with a different named range?

    I cant figure it out in excel and I'm getting stuck with VBA also. I can use the .FormulaArray function but only with the value hard coded, e.g. Range.FormulaArray = "=AU_ARE_22_18_AL3_AL3_R_13_3__ANSI_61_". But I want the value to change based on the cell(A) value.

    I hope this makes sense.....

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Dynamic Formula Array

    You will probably need to use the INDIRECT function in your formula, as this turns a range which is a text value into a range reference that Excel can make use of.

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon, as this does not work on this forum.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-18-2011
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Dynamic Formula Array

    Pete, No need. the INDIRECT function has done the trick.
    I had thought about it but it wouldn't work for me. Following your suggestion I tried again and it works perfect. Appreciate your help on this!!
    Barry

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Dynamic Formula Array

    Well, glad to help, Barry.

    If that takes care of your query, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark this thread as SOLVED.

    Pete

  5. #5
    Registered User
    Join Date
    05-18-2011
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    24
    Quote Originally Posted by Pete_UK View Post
    Well, glad to help, Barry.

    If that takes care of your query, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark this thread as SOLVED.

    Pete
    Will do. Cheers

+ 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 array filter formula
    By johnmitch38 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-14-2018, 05:40 AM
  2. [SOLVED] Using Indirect() to get dynamic references in an array formula
    By jlb333333 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2015, 10:37 AM
  3. Dynamic Row Lookup Array within Array formula
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-17-2014, 04:55 PM
  4. How to use VBA to enter a formula into a cell where the formula contains a dynamic array
    By LadyFenelopy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2012, 09:46 AM
  5. VBA for dynamic range in array formula
    By oliver30680 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2010, 07:31 PM
  6. VBA Array formula for dynamic ranges
    By -nada- in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2010, 07:41 AM
  7. array formula with a dynamic range.
    By Dave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2006, 01:25 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