How would I create a if statement in the main tab in cell D2 for stock , by calling the information from tab cost by comparing Supply and Inventory and by matching the type and error for both tab.
If Inventory is greater or equal to Supply should how a 0
If Inventory is less than Supply it should how a 1
I assume you use something like this but not sure where you add the if statement condition.
=SUM(SUMIFS(Cost!$C$2:$C$7,Cost!$A$2:$A$7,B2,Cost!$B$2:$B$7,C2),SUMIFS(Cost!$D$2:$D$7,Cost!$A$2:$A$7,B2,Cost!$B$2:$B$7,C2))
Bookmarks