I am trying to have two logical test in my IF statement and running into a mind block. I've got the first thought process working where if two columns are <= give result, but I also want to check another column D if it is > column F produce blank value. So in my example on line 360 the value in column H OrderQty should be blank because column D is greater than column F even though my first statement is true. The other cells that produced results in OrderQty are correct.
Reorder_pts.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ItemCode | QuantityOnHand | QuantityOnSalesOrder | QuantityOnPurchaseOrder | ReorderPointQty | MinimumOrderQty | LastPhysicalCountDate | OrderQty | ||
325 | CVFRD7GY-2XL REG | 10 | 11 | 26 | 20 | 24 | ####################### | |||
326 | CVFRD7GY-2XL TAL | 9 | 7 | 12 | 12 | 12 | ####################### | |||
327 | CVFRD7GY-3XL REG | 19 | 8 | 0 | 12 | 12 | ####################### | |||
328 | CVFRD7GY-3XL TAL | 15 | 5 | 12 | 12 | 12 | ####################### | |||
329 | CVFRD7GY-4XL REG | 20 | 1 | 0 | 6 | 12 | ####################### | |||
330 | CVFRD7GY-4XL TAL | 22 | 2 | 0 | 6 | 12 | ####################### | |||
331 | CVFRD7GY-5XL REG | 0 | 7 | 13 | 6 | 6 | ####################### | |||
332 | CVFRD7KH-MED REG | 10 | 1 | 12 | 12 | 12 | ####################### | 12 | ||
333 | CVFRD7KH-MED TAL | 13 | 0 | 0 | 6 | 12 | ####################### | |||
334 | CVFRD7KH-SM REG | 14 | 0 | 0 | 3 | 6 | ####################### | |||
335 | CVFRD7KH-XL REG | 9 | 1 | 0 | 12 | 12 | 7/7/2023 | 12 | ||
336 | CVFRD7KH-XL TAL | 38 | 0 | 0 | 6 | 12 | ####################### | |||
337 | CVFRD7NY-2XL REG | 24 | 4 | 0 | 20 | 24 | ####################### | |||
338 | CVFRD7NY-2XL TAL | 17 | 2 | 0 | 12 | 12 | ####################### | |||
339 | CVFRD7NY-3XL REG | 15 | 3 | 0 | 12 | 12 | ####################### | |||
340 | CVFRD7NY-3XL TAL | 21 | 0 | 0 | 12 | 12 | ####################### | |||
341 | CVFRD7NY-4XL REG | 22 | 0 | 0 | 6 | 12 | ####################### | |||
342 | CVFRD7NY-4XL TAL | 31 | 0 | 0 | 6 | 12 | ####################### | |||
343 | CVFRD7NY-5XL REG | 15 | 0 | 0 | 6 | 6 | ####################### | |||
344 | CVFRD7NY-LAR REG | 6 | 7 | 26 | 20 | 24 | ####################### | 24 | ||
TEST_REORDER |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H325:H344 | H325 | =IF([@QuantityOnSalesOrder]+[@QuantityOnHand]<= [@ReorderPointQty],[@MinimumOrderQty],IF([@QuantityOnPurchaseOrder]>=[@MinimumOrderQty],"","")) |