getting #Value error when using FILTER to remove blank rows with VSTACK

Glainer

New Member
Joined
Apr 30, 2007
Messages
14
I can't figure out why I get a #Value error when using Filter to remove blank rows. the vstack works fine without the filter, and I have used the filter the same way before and it worked, but not this time. Please help?

Excel Formula:
=FILTER(VSTACK('TsysInvoiceData:TsysInvoiceData (8)'!A2:K934),VSTACK('TsysInvoiceData:TsysInvoiceData (8)'!A2:K934)<>"")

Thank you!
gg
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
The filter function is not happy that you have specified multiple columns in the filter condition.
Do you need to check all columns for blank or can you just use one column to use as a criteria ?

eg this will work
Rich (BB code):
=FILTER(VSTACK('TsysInvoiceData:TsysInvoiceData (8)'!A2:K934),VSTACK('TsysInvoiceData:TsysInvoiceData (8)'!A2:A934)<>"")
ChooseColumns in the filter condition will work too.
(If you use ChooseColumns then Vstack is common and you could use the Let command so you only refer to it the once.)
Rich (BB code):
=FILTER(VSTACK('TsysInvoiceData:TsysInvoiceData (8)'!A2:K934), CHOOSECOLS(VSTACK('TsysInvoiceData:TsysInvoiceData (8)'!A2:K934), 1)<>"")
 
Upvote 0
Thanks for letting me know. Glad I could help.

PS: with the ChooseCols version you can reduce it to this:
Excel Formula:
=LET(vs,VSTACK('TsysInvoiceData:[TsysInvoiceData (8)]TsysInvoiceData (8)'!A2:K934),
FILTER(vs,CHOOSECOLS(vs,1)<>""))
 
Upvote 0
I normally use INDEX instead...


=LET(vs,VSTACK('TsysInvoiceData:[TsysInvoiceData (8)]TsysInvoiceData (8)'!A2:K934),
FILTER(vs,INDEX(vs,,1)<>""))
 
Upvote 0

Forum statistics

Threads
1,215,351
Messages
6,124,445
Members
449,160
Latest member
nikijon

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