Calculations based on cell value

M

Michael Wright

I'm not sure if this is possible or not but what I would like to do is take a
value of a cell say E2 and then in another cell perform a calculation that
varies depending on the value in E2, for example:

If E2 is between 0.01 and 29.99 calculate E2*5.25%
or
If E2 is between 30.00 and 599.99 then calculate 1.57+(E2-29.99)*3.25%

In another cell I would like to have a set value inserted based on the value
of E2, for example:

If E2 is between 0.01 and 0.99 then insert 0.15
If E2 is between 1.00 and 4.99 then insert 0.20
If E2 is between 5.00 and 14.99 then insert 0.35 etc.

Is any of this possible?
 
L

Lori

Try the two formulas:

=CHOOSE(MATCH(E2,{0.01,30,600}),E2*5.25%,1.57+(E2-29.99)*3.25%,NA())

=LOOKUP(E2,{0.01,1,5},{0.15,0.2,0.35})
 
M

Michael Wright

Thanks Lori,

They work perfectly.

Lori said:
Try the two formulas:

=CHOOSE(MATCH(E2,{0.01,30,600}),E2*5.25%,1.57+(E2-29.99)*3.25%,NA())

=LOOKUP(E2,{0.01,1,5},{0.15,0.2,0.35})
 

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