+ Reply to Thread
Results 1 to 4 of 4

Execute an indirect array formula

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    10

    Execute an indirect array formula

    I have two datasets that automatically download into Google Sheets from different Google Analytics accounts. They have the same columns, and I'm creating a separate Sheet that combines the data from both (one on top of the other).

    Step 1: I have formulas that count the number of rows of data in each sheet
    SheetA=9917 (cell S1)
    SheetB=4826 (cell S2)
    Step 2: I create a formula that concatenates the data together which will, when executed, append the two datasets together
    Concatenate("{'SheetA'!A2:P",S1,";'SheetB'!A2:P",S2,"}")
    This results in: {'SheetA'!A2:P9917;'SheetB'!A2:P4826}
    The problem is that I can't get this to automatically execute. I've tried an indirect formula, but it just pulls the string without executing the formula. I suspect the array {} might be getting in the way of the indirect. I'd really like to automate it because the data that updates Sheets A and B automatically updates every day, but right now the only way I can get the above formula to execute is to manually copy and paste it after an =. I've tried adding the = to the concatenate and that doesn't work either.

    Help?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Execute an indirect array formula

    If you typed in the braces, you did it incorrectly. Take the braces out. Then with the formula bar selected press CTRL-SHIFT-ENTER simultaneously. When you look back at the formula, the braces will appear, but they will appear around the whole formula when the CELL is selected. If you go back to the FORMULA BAR, the braces will disappear and you have "canceled" the array formula. To keep it you have to press CTRL-SHIFT-ENTER again.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    09-30-2014
    Location
    Massachusetts
    MS-Off Ver
    2010
    Posts
    10

    Re: Execute an indirect array formula

    Thanks for the reply! If I do the control shift enter command the first time, does the formula then become automated? That is, when the values from sheet A and B change, will the formula update to then pull all the info? If not, do you have any suggestions for automated solutions?

    Thanks!

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Execute an indirect array formula

    As long as you stay out of the formula box for that cell after the initial CTRL-SHIFT-ENTER you should be good to go. I have not looked at your formula closely. Without a workbook, it's difficult to visualize what you are trying to do. So I can't say if you have a good formula or not.

+ 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] VBA Array Formula does not execute
    By Andyandrew90 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2017, 08:19 AM
  2. Formula, array, indirect
    By oamrt in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-16-2014, 02:44 AM
  3. [SOLVED] Indirect used in an array formula
    By Héctor Miguel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] Indirect used in an array formula
    By Héctor Miguel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Indirect used in an array formula
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. Indirect used in an array formula
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. [SOLVED] Indirect used in an array formula
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2005, 12:05 PM

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