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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,663
Messages
6,173,650
Members
452,525
Latest member
DPOLKADOT

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