Highlighted
New Contributor

# Why am I getting #VALUE! error?

=SUM('2020 Schedule'!FV2:FV3,'2020 Schedule'!FV7:FV10*2,'2020 Schedule'!FV19:FV20*3,'2020 Schedule'!FV25:FV32)

This is my formula for an individual part needed to build specific finished machines - so for models in FV7 through FV10 I need two of each part for the build, FV19 and FV20 I need three of each part... I don't understand why I keep getting the #VALUE! error - it works fine and gives me the correct total in the 'sum formula wizard' but when I hit enter, I get the error in the cell.  Thoughts?

3 Replies
Highlighted

# Re: Why am I getting #VALUE! error?

Sorry if this is obvious or if you've already tried this. I ran into a similar problem and it turned out I had a random space in my formula, might be a place to start.
Highlighted

# Re: Why am I getting #VALUE! error?

@OliviaMullen  I think you have a couple of problems.  The basic problem is that you are trying to use multiplication inside the SUM function.  The easiest solution in your case is to manually do the *2 and *3 as follows:

=SUM('2020 Schedule'!FV2:FV3,'2020 Schedule'!FV7:FV10,'2020 Schedule'!FV7:FV10,'2020 Schedule'!FV19:FV20,'2020 Schedule'!FV19:FV20,'2020 Schedule'!FV19:FV20,'2020 Schedule'!FV25:FV32)

if you wanted higher level products or the such you could use SUMPRODUCT to do the array calculation, but the next problem is that your arrays are of different size and that won't work.

So lastly you could use a helper column and do the product/selection and then just get the sum from that column.

EDIT: just realized, I bet it used to work and doesn't now?  You can use CTRL+SHIFT+ENTER to enter it as an array formula and then it will work

Highlighted

# Re: Why am I getting #VALUE! error?

@OliviaMullenI figured it out - I don't know if it's the most eloquent, but it works:

=SUM('2020 Schedule'!FV2:FV3,(SUM('2020 Schedule'!FV7:FV10)*2),(SUM('2020 Schedule'!FV19:FV20)*3),'2020 Schedule'!FV25:FV32)

Formulas within the formula I guess?