Blank cell value to be taken as zero in the formula

pbrayudu

New Member
Joined
Dec 31, 2011
Messages
37
Sir,
I am using the formula to calculate weighted average as explained below.
Value of Cell D9 = 23
Value of Cell E9 = 20
Note: D9 and E9 Can take any value.
Formula in F9 Cell is: =ROUNDUP(((MAXA(D9,E9)*2)+(MINA(D9,E9)))/3,0)
Answer in F9 Cell is: 22

My requirement is that I need the formula in such a way that "if the cell D9 or E9 is blank or both are blank, the blank cell value is to be taken as Zero by the formula". The formula shall work by taking blank cell value as "zero". Please modify / provide me the formula with this requirement.
Hope I could explain clearly.
Thank you in advance for the help
Best Regards
P Bangaru Rayudu
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
This should do it.

=ROUNDUP(((MAXA(D9,E9)*2)+(IF(COUNT(D9,E9)=2,MINA(D9,E9),0)))/3,0)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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