Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
tinagi
 
Posts: n/a
Default Returning value from a range of data

Hi,



I'm currently trying to find a way to return a numeric value from a list of
betweens. For example, the costs relating to transport cost x amount if less
than 100kg, y if between 100 and 200, z if between 200 and 300 and so on. Is
there a way to do this in excel, without doing a very lengthy if formula?



If not, I'm not sure how to go about the IF formula, as it contains too many
values for excel - I have about 20 possible results.

  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Returning value from a range of data

Create a table with the breakpoints in the first column and the associated
costs in the second:
0 x
100 y
200 z
Suppose this is in Sheet2, cells A1:B3
Then, if your shipping weight is in cell A1, the shipping cost would be
=vlookup(a1,sheet2!$A$1:$B$3,2). If you have a series of items to ship,
with weights continuing in column A, you could enter this formula in B1 then
just copy from B1 down through column B; each cell in column B would
indicate the shipping cost given the weight in the cell to the left. (Note
that this will show the cost as y for anything weighing = 100kg and <200kg;
the breakpoints are 'inclusive').
HTH. --Bruce

"tinagi" wrote:

Hi,



I'm currently trying to find a way to return a numeric value from a list of
betweens. For example, the costs relating to transport cost x amount if less
than 100kg, y if between 100 and 200, z if between 200 and 300 and so on. Is
there a way to do this in excel, without doing a very lengthy if formula?



If not, I'm not sure how to go about the IF formula, as it contains too many
values for excel - I have about 20 possible results.

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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
How to create a chart based on a 2 dim data range dynamical in 1 d Beertje Charts and Charting in Excel 1 October 25th 05 11:54 AM
data range Steve M Excel Discussion (Misc queries) 0 April 4th 05 11:17 PM
Data range properties baz Excel Discussion (Misc queries) 1 April 1st 05 09:37 AM


All times are GMT +1. The time now is 05:46 PM.

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

About Us

"It's about Microsoft Excel"