by FJCC » Thu Jul 23, 2020 1:27 am
There is no need for a macro; you can use the filter function. I assume the list of wines has the headers Wine and Quantity. Select the cells you want to affect and then choose the menu Data -> Filter -> Standard Filter. Set the Field Name to Quantity, the Condition to >, and the Value to 0. Click More Options and select the box Copy Results To. In the box to the right and one row down enter the name of the cell you want to results copied to, e.g. Sheet2.A1. Click OK and the data will appear at the chosen sheet and cell.
Windows 10 and Linux Mint, since 2017
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.