formula question

hhamlinwright08

New Member
Joined
Oct 5, 2017
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi all,

How would I modify the formula below so that if S16 is "0" then the default cell value is automatically 0?

=IF(S16>0,(SUM(U16,X16,AA16,AD16,AG16,AJ16,AM16,AP16,AS16,AV16,AY16,BB16)/62),"")

Thanks in advance
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I assume by "default cell value" you mean the cell in which this formula sits?

If the sum cannot be less than zero then you could just replace the "" with a zero.
 
Upvote 0
=IF(S184>0,(SUM(U184,X184,AA184,AD184,AG184,AJ184,AM184,AP184,AS184,AV184,AY184,BB184)/62),"0")

That did it! Thanks!
 
Upvote 0
=IF(S184>0,(SUM(U184,X184,AA184,AD184,AG184,AJ184,AM184,AP184,AS184,AV184,AY184,BB184)/62),"0")

That did it! Thanks!

If you leave the quote marks around the zero you won't be able to use the 0 in any other calculations as it will get entered as text. Just put in a zero with no quotes to have a zero number in the cell.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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