I’m working on a Google Sheets project and I’m stuck. I need to create a formula that checks if an order is canceled and then displays it with the related material on another sheet. Here’s what I’m trying to do:
Check if an order is canceled (columns A and B)
If it is, show the order and its material on a different sheet (columns C and D)
I’ve been scratching my head over this for a while now. Has anyone done something similar before? Any tips or formulas that could help me out? I’m not sure where to start with this one.
Here’s a simple example of what my data looks like:
Having dealt with similar scenarios, I can suggest using an ARRAYFORMULA combined with IF statements. This approach is efficient and updates automatically.
On your new sheet, in cell A2, input this formula:
This formula checks each row in Sheet1, and if the status is “Canceled”, it pulls the corresponding order, status, and material information. The empty quotes at the end ensure blank rows aren’t displayed for non-canceled orders.
Remember to adjust ‘Sheet1’ to match your actual sheet name. This method is particularly useful for larger datasets as it doesn’t require manual updating. Let me know if you need any clarification on implementing this solution.
I’ve actually tackled a similar challenge in my work with inventory management. Here’s an approach that might help:
You can use a combination of FILTER and QUERY functions to accomplish this. First, set up your new sheet with headers for Order, Status, and Material. Then, in the first cell below the headers, try this formula:
This assumes your original data is on ‘Sheet1’. The FILTER part selects only the rows where the status is “Canceled”, and the QUERY part ensures you’re pulling all the relevant columns.
One thing to watch out for: make sure your column headers in the original sheet don’t interfere with the filter. You might need to adjust the range if they do.
This should give you a dynamic list that updates automatically when orders are canceled. Let me know if you need any clarification on this approach!
hey miar, i’ve done smth similar before. try this in ur new sheet:
=filter(Sheet1!A:C, Sheet1!B:B=“Canceled”)
it’ll grab all the canceled orders + their info. just make sure ur original sheet is named ‘Sheet1’. hope this helps! lemme know if u need anything else