Forum Discussion

Candi80's avatar
Candi80
Copper Contributor
Jan 04, 2024
Solved

if function help

I need help to get this function to work correctly! Right now it only subtracts the unit cost (G) if there is a date in (M)I need it to subtract both Unit cost(G) and Repairs invoices(H) from the tot...
  • HansVogelaar's avatar
    Jan 04, 2024

    Instead of subtracting, we can sum only the rows for which column M is blank.

     

    =SUMPRODUCT(G2:H24*(M2:M24=""))

Resources