Smaller than 0 to return a 0 result

M

MWRhino

Every tenant gets one free go per week. I need to create a formula where
where any negative numbers are returned as a '0' result.
('01'!C3+'02'!C3+'03'!C3+'04'!C3+'05'!C3+'06'!C3+'07'!C3-1) Returns a -1
result. I need it to return '0' answer.
 
D

Duke Carey

Well - first let's fix the formula. This assumes your sheets '01' through
'07' are ALL side by side

Rewrite

('01'!C3+'02'!C3+'03'!C3+'04'!C3+'05'!C3+'06'!C3+'07'!C3-1)

as

=SUM('01:07'!C3)-1

Now, to ensure it never goes negative, use

=MAX(SUM('01:07'!C3)-1,0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top