ignoring blanks while preforming calculation

Mandy_84

Board Regular
Joined
May 29, 2017
Messages
71
Hi :)
I'm stuck - I need a function that sums up a simple calculation. I'm using SUM and also tried SUMIF, however it still gives me #value!
=SUM((B22*B23);(B27*B28);(B32*B33);(B37*B38)) it works perfect if all the required cells have a number, however if one of the cell is blank it doesn't return the correct calculation ignoring the blank.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I know there has to be a more elegant way to do this, but try:

=SUM(N(B22)*N(B23);N(B27)*N(B28);N(B32)*N(B33);N(B37)*N(B38))
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top