Search code examples
google-sheetsgoogle-sheets-formulaarray-formulas

Apply an arrayformula to a table with multiple rows and columns


In Google Sheets, I'd like to use something like arrayformula() to apply a formula to an entire 2-dimensional array, where the arguments of the formula are taken from the row/column headers.

Example here. So something like arrayformula(B1:F1&A2:A10). I know I could write =B$1&$A2 into the top left and then copy it across, but I'm wondering if it's possible to remove the need to copy and paste.


Solution

  • So something like arrayformula(B1:F1&A2:A10)

    This works just fine:

    =ARRAYFORMULA(B1:F1&A2:A10)
    

    enter image description here