+ Reply to Thread
Results 1 to 5 of 5

Array Formula - Google Sheets -> Excel converter

  1. #1
    Registered User
    Join Date
    12-19-2018
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2016
    Posts
    1

    Array Formula - Google Sheets -> Excel converter

    Hey,

    I have this formula that I've been using in Google Sheets but don't quite know how to do things in Excel world.

    Example data
    Capture.PNG

    Google Sheets formula
    =ARRAYFORMULA({HLOOKUP(VLOOKUP(F2,F2:2,FLOOR((ROW(INDIRECT("A1:A"&COUNTA(F3:F)*COUNTA(F2:2)))-1)/COUNTA(F3:F))+1,0),F2:H,{ROW(INDIRECT("A1:A"&COUNTA(F3:F)*COUNTA(F2:2)))^0,MOD(ROW(INDIRECT("A1:A"&COUNTA(F3:F)*COUNTA(F2:2)))-1,COUNTA(F3:F))+2},0),MOD(ROW(INDIRECT("A1:A"&COUNTA(F3:F)*COUNTA(F2:2)))-1,COUNTA(F3:F))+1})

    Usually I'm not doing such complex things and then Google sheets is fine. This time as I need to have many rows their row limit will become a problem soon so I thought I'd transition now.

    Let me know your solutions.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,858

    Re: Array Formula - Google Sheets -> Excel converter

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,858

    Re: Array Formula - Google Sheets -> Excel converter

    Open Power Query/Get and Transform. Click on New Query.

    Open blank query in the editor, launch Advanced Editor and paste in the following code.

    Assumes your range of data is named Table1


    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Array Formula - Google Sheets -> Excel converter

    Hi

    in A3

    =Iferror(Index(F$2:H$2,INT((Row(A1)+3)/4)),"")

    in B3

    =If(A3="",A3&"",Index($E$3:$E$6,1+Mod(Row(A1)-1,4)))

    in C3

    =Sumproduct(F$3:H$6*(F$2:H$2=A3)*(E$3:E$6=B3))

    To be copied down

    Regards

    Edit: sorry Alansidman: I did not mean to overlap...
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,858

    Re: Array Formula - Google Sheets -> Excel converter

    @canapone

    No worries. Alternative Solutions are always good. There are always multiple ways to solve Excel issues. Now the OP has a choice as to the direction he wishes to take.

    Alan

+ 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. How do I convert an INDEX SMALL array formula for use in Google Sheets?
    By sharadmaxwell in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 7
    Last Post: 07-25-2018, 08:40 AM
  2. Array formula not working in Google Sheets
    By nappy1001 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 04-20-2018, 12:14 PM
  3. Google Sheets Array and importrange help
    By ckserra in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 01-04-2018, 01:59 PM
  4. Excel lookup formula to google sheets
    By bluechipjr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2017, 06:04 PM
  5. Converting google sheets formula to excel
    By coldeskimo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-08-2016, 08:41 AM
  6. Google Sheets Array Formula Structure
    By redline24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2015, 04:00 PM
  7. array formula google doc to excel
    By jettechfsr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-09-2013, 02:46 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