Contradicting conditions?

tamiwami

New Member
Joined
Jun 18, 2018
Messages
5
Im new to excel, Im trying to create a formula with many conditions, but i think they are contradicting each other. Looking for some assistance.
This is what I've got:

=MAX(0,IF(SUM(K10:K23)>80,0,IF(SUM(K10:K23)<80,80-(SUM(K10:K23)))))

Now I would like to add that if K10:K23 = 0,0 but that doesn't seem to work when I add it.
Any ideas?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Please explain, in plain English, exactly what you want this formula to do.
 
Upvote 0
Its for a time sheet and this cell will calculate the hours needed to reach 80. So essentially if K10:K23(hours worked) is greater than 80, this would be 0, but if it was less than 80 it would calculate the remainder. So far what I have works but I want to add that if K10:K23 is 0 then this cell diplays 0.
 
Upvote 0
Its for a time sheet and this cell will calculate the hours needed to reach 80. So essentially if K10:K23(hours worked) is greater than 80, this would be 0, but if it was less than 80 it would calculate the remainder. So far what I have works but I want to add that if K10:K23 is 0 then this cell displays 0.
 
Upvote 0
Try this:
Code:
=IF(SUM(K10:K23)=0,0,MAX(80-SUM(K10:K23),0))
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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