I would like to create an Excel formula (without using VBA) to fill a sheet named "Bill" based on another sheet named "Prescription".
I have for example 10 rows in the sheet "Prescription" with columns Title, Quantity, Price and Total. I want to copy the rows where Quantity>0 to the sheet "Bill" without having any blank rows.
I know it is easy to do with VBA, all I have to do is to copy every rows (including blank rows), set up an autofilter to hide 0s and then add some VBA to refresh the filter, but I'm pretty sure I could do it without VBA (maybe with an array-formula or something to get the Nth non-0 value).
So this is "Prescription":
Title|Qty|Price| Total
----------------------
Test1| 0|99.99| 0
Test2| 1|99.99| 99.99
Test3| 0|99.99| 0
Test4| 3|99.99|299.97
I want a formula to get in another sheet:
Title|Qty|Price| Total
----------------------
Test2| 1|99.99| 99.99
Test4| 3|99.99|299.97