Dynamic arrays as filter

glfiedler

Board Regular
Joined
Apr 1, 2019
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Greetings,
I am trying to learn about the new concepts of dynamic arrays and the spill feature in the latest Excel. The dog is never too old to learn!
Let us say I have a named range, A1:A15, called "myNums".
This range contains positive and negative numbers.
My task is to create a list, starting in B1, containing the negative values.
I could do this very simply with a few lines of VBA code. But that is not the point. I understand this example task is trivial.
What formula should I put in cell B1 so the list of negative values would simply spill down?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
=filter(A1:A15,A1:A15<0)
 
Upvote 0
How about
=filter(A1:A15,A1:A15<0)
Fluff,
That is exactly right! I was not aware of the "filter" command.
A Microsoft web page ("Excel functions that return ranges or arrays") does not list "filter". Oh well, they didn't claim the list was all-inclusive.
Thank you very much. Stay healthy.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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