Formula Problem

J

JoeH

I am trying to develop a worksheet where my sum will vary depending on
whether another cell is greater than one number, greater than or less than
another number and less than another number. A second multiplier depends on
this criteria. An example would be if cell L20was <30 then C20 would be
multiplied by cell L20. If it was <36> It would be multiplied by I20and if
it was >36 it would be multiplied by cell F20. I am trying to enter the
formula into cell M20. Hope this makes sense. Thanks in advance.
 
J

joeu2004

An example would be if cell L20was <30 then C20 would be
multiplied by cell L20. If it was <36> It would be multiplied by I20and if
it was >36 it would be multiplied by cell F20. I am trying to enter the
formula into cell M20. Hope this makes sense.

=C20 * if(L20<30, L20, if(L20>36, F20, I20))
 
T

T. Valko

You need to define the intervals more clearly.

When a lot of people post this type of question they don't realize that they
have either defined overlapping intervals or left out a number that's the
boundary of an interval.

Try defining them like this:

<= X (less than or equal to)
= X but <= X (greater than or equal to but less than or equal to)
= X (greater than or equal to)

For example:

<=30
 
J

JoeH

Thanks for the help. I was suffering from brain cramps, but it all makes
sense now that I got some sleep and looked over your reply.
 

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

IF THEN formula 4
Excel Need Countifs Formula Help 0
formula IF > AND < 2
Help needed for inexperienced MS Excel 2003 user 2
Excel Formula or equation 3
EXCEL 2007 no longer add properly 7
calculate shipping costs in excel 2007 2
Formula Error 6

Top