Pregunta

Here is what I want to do. I'm basically look for orders that it is not okay to ship a partial. So any where it says N for Partial Ok?, I would then like for it to look for any more times that the order occurs and only count it if the quantity on hand or quantity picked is less than the open quantity.

So basically. If R29 = N, then look at D29 for reference, then look at M29 and P29 to confirm that M29 or P29 is => than N29. If it is greater than N29 then don't count it. If it is less than N29 then count it because it is short or an incomplete line. Please keep in Mind that D29 can appear many more times on the spreadsheet. So I would only want to count how many times does D29 appear as an incomplete line.

Help

¿Fue útil?

Solución

Try using SUMPRODUCT:

=SUMPRODUCT(($R$2:$R$103="No")*($D$2:$D$103=D29)*($N$2:$N$103>$M$2:$M$103)*($N$2:$N$103>$P$2:$P$103))

This will count rows if:

  • There is "No" in the column R;
  • There are other rows with the same Sales Order (col D) with;
  • Both quantity picked and quantify on hand below open quantity.

I discarded the 'or' part because from your comments, it's really not an 'or' but an 'and'.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top