# Array Formula - Google Sheets -> Excel converter

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

=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.

2. ## 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.

3. ## 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. ## 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...

5. ## 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

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### 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