Adding 2 cells only if one is not over

S

srctr

I am trying to create an Attendance Calendar. We are allotted only a certain
number of days (can't go over that). But we get a day each month. I need
the formula to add Allotted Days + Carry over days and minus Total days used
that month but never go over 36 days.

Allotted Days + Carry Over Days -Total days used = Total Days left (never to
exceed 36 days)

Thanks in advance for any help with this problem.
 
P

Pete_UK

Substitute your cell references as necessary, and use a formula like
this:

=MIN(Allotted Days + Carry Over Days -Total days used,36)

If the first part of this exceeds 36, then 36 will be returned.

Hope this helps.

Pete
 
S

srctr

Thanks for your help. I found an example that had me use MIN this way and it
works. =MIN(36,SUM(A8+B8-AI8))
 
P

Pete_UK

That's fine, although you don't really need the SUM:

=MIN(36,A8+B8-AI8)

Thanks for feeding back.

Pete
 

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