Using IF Function

P

pjb

I am trying to create a formula that will sum a list of cells and if the
total exceeds a certain number it will return the number that is above that
number. ie:sum = 48, I want the formula to show 8. thanks
 
R

RonaldoOneNil

=IF(SUM(B16:B19)>48,SUM(B16:B19)-48,SUM(B16:B19))

Substitute your range of cells as required.
 
G

Gord Dibben

Don't understand where the 8 comes from.

8 is not above 48 unless you mean the cell above the SUM cell is 8?

=MIN(SUM(A1:A10),8) entered in A11

Or =MIN(SUM(A1:A8),A10)


Gord Dibben MS Excel MVP
 
P

pjb

the second works, thank you!

Gord Dibben said:
Don't understand where the 8 comes from.

8 is not above 48 unless you mean the cell above the SUM cell is 8?

=MIN(SUM(A1:A10),8) entered in A11

Or =MIN(SUM(A1:A8),A10)


Gord Dibben MS Excel MVP
 
G

Gord Dibben

Glad you picked up on the typo<g>

=MIN(SUM(A1:A10),A10) is what I meant to post.


Gord
 

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