A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Dear @Rebecca,
Based on your description, the approach you’re currently using with IFERROR('ORDER SHEET'!C12:F83,5) will pull all rows from the order sheet, including empty ones, so it won’t meet your requirement of only showing items that have been ordered.
To achieve this, since you want to use a formula that filters the data based on the quantity entered. If you are using a recent version of Excel (Microsoft 365 or Excel 2021), the most effective method is to use the FILTER function. This allows you to dynamically return only the rows where a condition is met, for example, where the quantity is greater than zero.
For more information, you can refer to this Microsoft Official Article here: FILTER function
For example, you can use the formula =FILTER(A5:D20,C5:C20=H2,"") to return all records for Apple, as selected in cell H2, and if there are no apples, return an empty string ("").
Additionally, here are some examples you can look through:
1/ FILTER used to return multiple criteria
In this case, we're using the multiplication operator () to return all values in our array range (A5:D20) that have Apples AND are in the East region: =FILTER(A5:D20,(C5:C20=H1)(A5:A20=H2),"").
2/ FILTER used to return multiple criteria and sort
In this case, we're using the previous FILTER function with the SORT function to return all values in our array range (A5:D20) that have Apples AND are in the East region, and then sort Units in descending order: =SORT(FILTER(A5:D20,(C5:C20=H1)*(A5:A20=H2),""),4,-1)
In this case, you can use the FILTER function with the addition operator (+) to return all values in our array range (A5:D20) that have Apples OR are in the East region, and then sort Units in descending order: =SORT(FILTER(A5:D20,(C5:C20=H1)+(A5:A20=H2),""),4,-1).
In the meantime, could you please confirm these questions below to help me diagnose the issue more effectively.
- Could you please confirm where the invoice is located?
- Is the invoice within the same Excel file, or is it stored in another system or application?I hope the information shared helps point you in the right direction. Please try the steps above and let me know if they work. If not, we can continue working together to narrow this down.
The first response may not always resolve the issue right away, but with your help and more details, we can work toward a solution.
Thank you for your patience and understanding. I'm looking forward for your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.