Formula Help - SUMIF

S

slow386

Hi Folks:

I have a row of 6 columns to add (E thru J)
The values of each cell goes from 0 to 5 in 0.5 increments.

If the value of E is less than 1.5, I'd like to just do s straight addition
(max value 30.0)
If the value of E is greater than 2.0, then I would like to double the added
value of get 60.0

What I'm using is =IF(E12<2,,(E12+F12+G12+H12+I12+J12)*2) which works. . .

However, if E12 is under 2.0, then it evaluates to 0 instead of 30

Any help wd be appreciated - Thanks
 
D

Dave Peterson

Maybe...

=MAX(30,(SUM(e12:j12)*2))*(1+(e12>2))
or
=MAX(30,(SUM(e12:j12)*2))*if(e12>2,2,1)

so it takes the sum of e12:j12 and then makes sure it doesn't exceed 30.

Then if E12 > 2, it doubles it. If E12 <= 2, then it just leaves it alone.

(You're going to have to think about whether the cutoff is 1.5 or 2.)
 
S

slow386

Dave:

It's a start, but I must be doing something wrong becasue with everything
set to 1.5, I'm getting 30.
Can I just get it to add straight accross unless E is 2.0 or more??
Thanks very much

Steve
 
S

slow386

Dave:

Found the fix . . .
Thanks

Dave Peterson said:
Maybe...

=MAX(30,(SUM(e12:j12)*2))*(1+(e12>2))
or
=MAX(30,(SUM(e12:j12)*2))*if(e12>2,2,1)

so it takes the sum of e12:j12 and then makes sure it doesn't exceed 30.

Then if E12 > 2, it doubles it. If E12 <= 2, then it just leaves it
alone.

(You're going to have to think about whether the cutoff is 1.5 or 2.)
 

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

Similar Threads

Vlookup Formula 4
Please help with dashes 4
Sorting 2
How do I fix this formula? 4
sum and if 4
help with formula 1
How do I continue this pattern in excel? 11
Return a "" value from a formular 3

Top