Forum Discussion

Mike Alford's avatar
Mike Alford
Copper Contributor
Jun 27, 2018
Solved

Using the right functions

I am creating an inventory spreadsheet (Inventory)using info from another tab(Production). Basically, anytime the word "Plastic1048" is in D column it should subtract the production and scrap in tha...
  • Matt Mickle's avatar
    Matt Mickle
    Jun 28, 2018

    It looks like you're using google sheets.  I can't remember if Sumproduct() works the same way in that software.  

     

    Try this:

     

    =C2-SUMPRODUCT((EXPER!$D$2:$D$16="Plastic4078")*EXPER!$E$2:$F$16)

     

    or this:

    =C2-SUMPRODUCT((EXPER!$D$2:$D$16="Plastic4078"),(EXPER!$E$2:$F$16))

     

    or this:

     

    =C2-IF(EXPER!D2="Pastic4078", Sum(EXPER!E2:F2),0)

     

     

     

Resources