Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUM AND IF FUCTION?

Status
Not open for further replies.

Robbo1971

Automotive
Nov 1, 2006
33
0
0
GB
I want to add a percentage of a figure to a figure...

=SUM(A1+(A1*(40/100)))

If A1 = £10 then the answer would be £14.

but the minimum figure I want to add on is £10, so the answer I require is £20.

Therefore how can I write a statement which would calculate the original sum, but if it was less than £10 would add £10 in lieu of the £4 as worked out by the original sum.
 
Replies continue below

Recommended for you

=IF(A1<10,A1,A1*(1+40/100))

or if B1 contains the % you want to increase by

=IF(A1<10,A1,A1*(1+B1/100))

the =MAX... option is suitable only if you want to increase the value to a minimum of £10.
 
robbo

The sum function adds up the values of a series of cells. It does not appear to do whatever you think its doing.

But a somif funtion exists where you only add the sells up that fit a criteria. Check it out yourself

Best regards

Morten
 

The SUM function adds up a series of values. They can be individual cells, numbers, ranges, anything.

That said, in the formula =SUM(A1+(A1*(40/100))) the SUM function is indeed doing nothing. A1+(A1*(40/100)) by itself already evaluates to a single number. Putting that inside SUM is just summing a single number, exactly like =SUM(150).

-handleman, CSWP (The new, easy test)
 
Status
Not open for further replies.
Back
Top