08/11/2024
FILTER Function
You are going to love this one. It is a FILTER function and, in this example, it is going to create an Inventory in one Cell Array and in the Next Cell Array it will be In Stock and the third it will be Out Of Stock. See the image for the In Stock Block and for the Out Of Stock the only thing that changes in that formula is the > greater than sing to the = equal sign.
Created a small set of items like in the Inventory block complete with the quantity. You can use any product or quantity and you can edit the products and quantities later to meet your needs and changes in your actual inventory in the other 2 blocks will update automatically.
For the In Stock (you can see the formula in the FORMULA BAR) notice that I have put the formula in cell E5. We start out with =FILTER( then what cell array or range your information is in which is B5:C9 next don’t forget the comma after C9. Then only the range where the quantity is, which is C5:C9. Next we add the greater than symbol > then 0 (zero). Now all that is left to do is close the formula with the Closed Parentheses ) and click Enter. Now the information in all the cells that are greater than zero will be there and the ones that have no quantity will be left out.
Your Formula in cell E5 should look like this:
=FILTER(B5:C9,C5:C9>0)
3; For the Out of Stock like in the In Stock section I start out with =FILTER( then the same cell array or range your information is in which is B5:C9 again don’t forget the comma after C9. Like the previous image, only the range where the quantity is, which is C5:C9. Next, we add the Equal sign = instead of the greater than sign, then 0 (zero). Now all that is left to do is close the formula with the Closed Parentheses ) and click Enter. Now the information in all the cells that are equal to zero will be there and the ones that have a quantity will be left out.
Your Formula in cell H5 should look like this:
=FILTER(B5:C9,C5:C9=0)
Now when you make any changes to your Inventory block the other two will automatically reflect the new changes.