SOLVED

Excel if formula vs, google sheets if formula

Copper Contributor

I have the following formula which works great in google sheets but gives me a "Value" error in Excel (same values), can you please help me with finding the way to get around the "Value" error in excel?

 

IF(E19="x",($D$19*$A$19),"")+IF(E20="x",($D$20*$A$20),"")+IF(E21="x",($D$21*$A$21),"")+IF(E22="x",($D$22*$A$22),"")+IF(E23="x",($D$23*$A$23),"")

2 Replies
best response confirmed by rhc002 (Copper Contributor)
Solution

@rhc002  The problem is that you are adding TEXT ("") to NUMBERS.

Try replacing the "" in each IF statement with 0.

Or try this formula instead:

=SUMPRODUCT($D$19:$D$23*$A$19:$A$23*($E$19:$E$23="x"))

@mtarler Thank you, both solutions work

:)

1 best response

Accepted Solutions
best response confirmed by rhc002 (Copper Contributor)
Solution

@rhc002  The problem is that you are adding TEXT ("") to NUMBERS.

Try replacing the "" in each IF statement with 0.

Or try this formula instead:

=SUMPRODUCT($D$19:$D$23*$A$19:$A$23*($E$19:$E$23="x"))

View solution in original post