BelindaJoy
New Member
I have (attached) a spreadsheet with inventory of parts at 2 shop locations; here called Shop A and Shop B. There is to be a separate inventory count done at each location (columns C and E). The price per part is the same however (column F). We have not priced every item on the inventory list yet, which has left some blanks in column F. I notice that the list I have has blanks (not 0) where we haven't yet counted inventory of a particular item either. Those blanks are being read as "" rather than 0 by the sumproduct formula so I put in logic checks that were supposed to exclude the blanks in either the quantity or price arrays. However when I apply this sum product formula for each shop, I'm not getting the correct answer as checked by helper columns.
The sumproduct for Shop A should come to $399,423.81 but instead is coming to $383,635.59 and I can't figure out why.
=SUMPRODUCT((C5:C1897),--(C5:C1897<>""),(F5:F1897),--(F5:F1897<>""))
I've found that I could solve this by using helper columns instead or by filtering for the "blank" cells and manually clearing those cells, but I'd like to learn what has gone wrong so I can address whatever it is I'm not understanding about this formula and how it works or doesn't work. Is the fact this was given to me formatted as a Table interfering?
The sumproduct for Shop A should come to $399,423.81 but instead is coming to $383,635.59 and I can't figure out why.
=SUMPRODUCT((C5:C1897),--(C5:C1897<>""),(F5:F1897),--(F5:F1897<>""))
I've found that I could solve this by using helper columns instead or by filtering for the "blank" cells and manually clearing those cells, but I'd like to learn what has gone wrong so I can address whatever it is I'm not understanding about this formula and how it works or doesn't work. Is the fact this was given to me formatted as a Table interfering?