#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rt rt is offline
external usenet poster
 
Posts: 11
Default If formula

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default If formula

What if its greater than 700??
--
Gary''s Student - gsnu200905


"rt" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default If formula

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"})
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"rt" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default If formula

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.

"Luke M" wrote:

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"})
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"rt" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"