#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default function range

I need help!!! UGH!!!!

Example: 2 cells, one titled LEFT & one RIGHT. LEFT has a value in it of
2500 while RIGHT has 3500. They would look up in a chart that looks like this;

LEFT RIGHT $
250 250 40
500 500 100
1000 1000 200
2000 2000 400
3000 3000 600
4000 4000 800
5000 5000 1000

The LEFT 2500 would fall on the leftside between 2000 & 3000 while the RIGHt
3500 would fall between 3000 & 4000 on the rightside. The search would return
the level above the lowest value which in this case would be the 2000 row and
would be $400

I hope that this made sense and thank you for your assistance.
--
Thanks much
Robert
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default function range

Try this. If the nuber is less than 500 you will have problems because therd
is nothing in the $ column for the row below 250.

=IF(MATCH(2500,A1:A7,1)<=MATCH(2500,B1:B7,1),OFFSE T(C1,MATCH(2500,A1:A7,1)-2,0,1,1),OFFSET(C1,MATCH(2500,B1:B7,1)-2,0,1,1))

"robert" wrote:

I need help!!! UGH!!!!

Example: 2 cells, one titled LEFT & one RIGHT. LEFT has a value in it of
2500 while RIGHT has 3500. They would look up in a chart that looks like this;

LEFT RIGHT $
250 250 40
500 500 100
1000 1000 200
2000 2000 400
3000 3000 600
4000 4000 800
5000 5000 1000

The LEFT 2500 would fall on the leftside between 2000 & 3000 while the RIGHt
3500 would fall between 3000 & 4000 on the rightside. The search would return
the level above the lowest value which in this case would be the 2000 row and
would be $400

I hope that this made sense and thank you for your assistance.
--
Thanks much
Robert

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
DBSUM function but with function as criterion, not a range corne_mo Excel Worksheet Functions 3 July 13th 07 12:20 PM
range function Felicia Excel Discussion (Misc queries) 2 January 29th 07 06:10 PM
IF function for a value range girth69 Excel Discussion (Misc queries) 6 August 9th 06 03:43 PM
Use of range in an if function helpmeplease Excel Worksheet Functions 9 June 28th 06 06:36 PM
Between/ range function sanpanico Excel Discussion (Misc queries) 3 April 28th 05 10:25 PM


All times are GMT +1. The time now is 06:18 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"