Array works in excel but not in google sheets

mrjinx007

Board Regular
Joined
Jul 28, 2011
Messages
51
Hi,
I have an array that looks at column A-3 through A-245 and displays cells that are not empty. Converted the form to google sheets and although it converts the formula, it does not work.
Any help is greatly appreciated.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi,
I have an array that looks at column A-3 through A-245 and displays cells that are not empty. Converted the form to google sheets and although it converts the formula, it does not work.
Any help is greatly appreciated.
Do you mean that you have a single formula in a cell that concatenates the non-empty cells in a range?
 
Upvote 0
This is what I have in all the cells in the column:
VBA Code:
={IF(ROWS($C$3:C3)<=COUNT(A$2:A$237)+COUNTIF(A$2:A$237,"*?"),INDEX(A$2:A$237,SMALL(IF(A$2:A$237<>"",ROW(A$2:A$237)-ROW(A$2)+1),ROWS($C$3:C3))),"")}
This provides me with list of none blank cells
 
Upvote 0
It translates into this but gives an error.
VBA Code:
=ARRAY_CONSTRAIN(ARRAYFORMULA(IF(ROWS($C$3:C3)<=COUNT(A$2:A$237)+COUNTIF(A$2:A$237,"*?"),INDEX(A$2:A$237,SMALL(IF(A$2:A$237<>"",ROW(A$2:A$237)-ROW(A$2)+1),ROWS($C$3:C3))),"")), 1, 1)
 
Upvote 0
It worked for me with no error.
=ARRAY_CONSTRAIN(ARRAYFORMULA(IF(ROWS($C$3:C3)<=COUNT(A$2:A$236)+COUNTIF(A$2:A$236,"*?"),INDEX(A$2:A$236,SMALL(IF(A$2:A$236<>"",ROW(A$2:A$236)-ROW(A$2)+1),ROWS($C$3:C3))),"")), 1, 1)
First I tried a shorter, and different way of limiting the list using iferror and that worked too. If you can get this version to work then that's something.
=ARRAY_CONSTRAIN(ARRAYFORMULA(IFERROR(INDEX($A$3:$A$23,SMALL(IF($A$3:$A$23<>"",ROW($A$3:$A$23)-ROW($A$3)+1,""),ROW(A3)-ROW($A$3)+1)),"")), 1, 1)

I can only think it was in import error.
 
Upvote 0
I Think this works in Goggle.
=FILTER(A2:A37,A2:A37<>"")
 
Upvote 0
It worked for me with no error.
=ARRAY_CONSTRAIN(ARRAYFORMULA(IF(ROWS($C$3:C3)<=COUNT(A$2:A$236)+COUNTIF(A$2:A$236,"*?"),INDEX(A$2:A$236,SMALL(IF(A$2:A$236<>"",ROW(A$2:A$236)-ROW(A$2)+1),ROWS($C$3:C3))),"")), 1, 1)
First I tried a shorter, and different way of limiting the list using iferror and that worked too. If you can get this version to work then that's something.
=ARRAY_CONSTRAIN(ARRAYFORMULA(IFERROR(INDEX($A$3:$A$23,SMALL(IF($A$3:$A$23<>"",ROW($A$3:$A$23)-ROW($A$3)+1,""),ROW(A3)-ROW($A$3)+1)),"")), 1, 1)

I can only think it was in import error.
You are awesome. Thank you very much.
 
Upvote 0
I really didn't want to use the filter if I didn't have to.
Why on earth not? It's way faster & more efficient than your formula, it's also far easier to modify if needed.
 
Upvote 0
Why on earth not? It's way faster & more efficient than your formula, it's also far easier to modify if needed.
The program is designed to be used by few hundred people who are very low tech and with no knowledge of excel. If would freak them out :oops:
 
Upvote 0

Forum statistics

Threads
1,215,529
Messages
6,125,345
Members
449,220
Latest member
Edwin_SVRZ

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top