If formula

R

rt

I have a total $ amount in cell G30. I want a formula in G31 that calculates
a shipping cost as follows: Less than $50 = $10; Greater than $50 Less than
$200 = $15; Greater than $200 Less than $700 = $20. Thanks in advance. rt
 
L

Luke M

The way your wrote your conditions, your excluding midpoints (what happens if
it equals 50?) Also, what happens if you're over 700? Assuming each cuttoff
point is part of the lower group, formula is:

=LOOKUP(G31,{0,51,201,701},{10,15,20,"Something else"})
 
S

Sean Timmons

Alternately, if your list is longer than you specified here, you can make a
table with your lower limits in column A and your shiopping costs in B:

0 10
50 15

etc.

and do =VLOOKUP(G30,A:B,2) to return the cost.

Assumes your table is in columns A and B.
 

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