Hi,
I have read how to ignore #N/A using sumif in another post but I don't think this will work in my case.
I am trying to ignore all rows containing #N/A, not only the part of the formula containing the #N/A cell.
I have a file I can upload with new data all the time so just filtering away the #N/A wouldn't work, since it will mess up the count and the formulas.
This is what I am trying to do:
=ABS(SUMPRODUCT($B$2:$B$4)/SUMPRODUCT($D$2:$D$4;$C$2:$C$4)-1)
Which will give me an average discount ont the products I sell.
However whenever my formula hits an #N/A it doesn't work, and I don't want to only exclude the #N/A from the second part of the formula (because that will give me a much larger sum in the first part of the formula and will not provide me with the right discount)
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Sales Price (net)[/TD]
[TD]Quantity[/TD]
[TD]Catalogue (list) price[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Product A[/TD]
[TD]80[/TD]
[TD]2[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Product B[/TD]
[TD]70[/TD]
[TD]4[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Product C[/TD]
[TD]60[/TD]
[TD]5[/TD]
[TD]#N/A[/TD]
[/TR]
</tbody>[/TABLE]
This seems like a pretty advanced question, but I hope someone will be able to answer.
Please ask me for more detail if needed.
Thank you!
I have read how to ignore #N/A using sumif in another post but I don't think this will work in my case.
I am trying to ignore all rows containing #N/A, not only the part of the formula containing the #N/A cell.
I have a file I can upload with new data all the time so just filtering away the #N/A wouldn't work, since it will mess up the count and the formulas.
This is what I am trying to do:
=ABS(SUMPRODUCT($B$2:$B$4)/SUMPRODUCT($D$2:$D$4;$C$2:$C$4)-1)
Which will give me an average discount ont the products I sell.
However whenever my formula hits an #N/A it doesn't work, and I don't want to only exclude the #N/A from the second part of the formula (because that will give me a much larger sum in the first part of the formula and will not provide me with the right discount)
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Sales Price (net)[/TD]
[TD]Quantity[/TD]
[TD]Catalogue (list) price[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Product A[/TD]
[TD]80[/TD]
[TD]2[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Product B[/TD]
[TD]70[/TD]
[TD]4[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Product C[/TD]
[TD]60[/TD]
[TD]5[/TD]
[TD]#N/A[/TD]
[/TR]
</tbody>[/TABLE]
This seems like a pretty advanced question, but I hope someone will be able to answer.
Please ask me for more detail if needed.
Thank you!