Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default breakpoint calculation

On Tue, 21 Oct 2008 17:32:02 -0700 (PDT), Oliver
wrote:

The following is a presentation of rate table:
<45kg +45KG +100KG +300KG +500KG +10000KG
$9.5 $8.5 $7.5 $4.5 $3.5 $1.5

It reads if weight is smaller than 45kg then we charge $9.5 per kg; if
weight is between 45 and 100kg then we charge $8.5 and so on; is there
an easy way to write a formula to calculate the total charge based on
the weight?
I could use if(weight<45,9.5*weight,if(and(weight45,weight<10 0),
8.5*weight, etc etc) but it will be a long formula...
i think it must have an easy way to do this...


If your Rate Table is in a horizontal alignment, as you show, then HLOOKUP will
do the job.

Set up the table someplace as follows:

0 45 100 300 500 10000
9.5 8.5 7.5 4.5 3.5 1.5


NAME it RateTable.

Then, with your weight in A1, use this formula:

=HLOOKUP(A1,RateTable,2)*A1
--ron
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
breakpoint calculation Teethless mama Excel Worksheet Functions 0 October 22nd 08 03:02 AM
Once only calculation - help please rhay999 Excel Discussion (Misc queries) 8 October 19th 05 02:22 PM
Breakpoint will not stop Excel subroutine boswald Excel Discussion (Misc queries) 2 August 24th 05 12:24 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


All times are GMT +1. The time now is 02:24 AM.

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"