+ Reply to Thread
Results 1 to 4 of 4

Google Sheets Arrayformula(Index(A:A,{3,4,5})) Get Multiple Rows?

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    colorado
    MS-Off Ver
    excel 2007
    Posts
    11

    Google Sheets Arrayformula(Index(A:A,{3,4,5})) Get Multiple Rows?

    Let's say A1:A10 is 1-10. I put =Arrayformula(Index(A:A,{3,4,5})) in B1, expecting to get the values in rows 3, 4, and 5 in B1:B3. But all it returns is "3" in B1. Is INDEX not able to return multiple rows using arrayformula and curly brackets?

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Google Sheets Arrayformula(Index(A:A,{3,4,5})) Get Multiple Rows?

    Seems INDEX does not like ARRAYFORMULA but you can use this;

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by Haluk; 01-31-2024 at 03:10 PM.

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    colorado
    MS-Off Ver
    excel 2007
    Posts
    11

    Re: Google Sheets Arrayformula(Index(A:A,{3,4,5})) Get Multiple Rows?

    I was just using those numbers as placeholders for simplicity, but in reality it would be other data, like dates for example. I've attached a CSV you can open in Excel or any spreadsheet program to show you something closer to the real data.

    A:A is dates, B:B is temperatures. C2 is the date to search for. D2 is the matching row number for that date =MATCH(C2,A:A,0). E2 is the formula to return temperatures for that date and all 4 days after that date =ARRAYFORMULA(INDEX(B:B,{D2,D2+1,D2+2,D2+3,D2+4})).

    Have a look at the CSV, or here is an image if that's easier, and thanks!

    Index Question.PNG
    Attached Files Attached Files
    Last edited by excelroofing; 02-01-2024 at 02:01 PM.

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,077

    Re: Google Sheets Arrayformula(Index(A:A,{3,4,5})) Get Multiple Rows?

    Hi excelroofing.

    First you wanted the 3rd,4th, and 5th values,

    Now you want the 8th,9th,10th,11th, and 12th values.

    So it seems that your conditions are changing.

    It would be a lot easier for us to help you if you could provide a link to a sample file (you can do that now because you have 10+ posts) and clearly explain your true objective.

    You can use this link to generate a Google Sheets file that you can share anonyously:
    https://docs.google.com/forms/d/e/1F...VbWiA/viewform

    Note: sharing CSV files is useless because we have to convert it to some other file type that can use formulas.
    Last edited by janmorris; 02-02-2024 at 02:16 AM.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

+ 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] multiple rows into one column (Google Sheets & Excel)
    By alipezu in forum Excel General
    Replies: 7
    Last Post: 02-14-2022, 05:58 AM
  2. [SOLVED] Google Sheets: Sum up a vLookup formula within an ArrayFormula
    By juno612 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 10
    Last Post: 08-15-2020, 06:10 PM
  3. arrayformula with index and small function in google sheeet
    By ranjanashanker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2019, 06:38 AM
  4. Converting index arrayformula from Google Sheets to Excel
    By Kibson in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-03-2018, 10:07 AM
  5. Google Sheets 'Arrayformula' with nested 'Importrange' formula Excel Equivalent?
    By Tamarissa in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 07-10-2018, 04:13 PM
  6. arrayformula from google doc to excel
    By shinkirou in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2013, 11:51 AM
  7. Replies: 4
    Last Post: 08-05-2010, 01:09 PM

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