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

PLEASE REPLY TO THIS ONE. I forgot to check the "Notify me of replies" box.

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
--
Thanks much
Robert
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default function range

=VLOOKUP(MIN(VLOOKUP(A2,A3:A10,1),VLOOKUP(B2,B3:B1 0,1)),B:C,2)

should work. Assumes your entered left and right cells are in A2 and B2,
respectively and the chart is in A3 through C10.

"robert" wrote:

PLEASE REPLY TO THIS ONE. I forgot to check the "Notify me of replies" box.

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
--
Thanks much
Robert

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default function range

Since the ranges on your lookup table are the same, you only need one of
those columns. You don't say where you lookup table is, so I am assuming it
is on Sheet2 with the headers starting in A1. Make that table look like this

Left/Right $
250 40
500 100
1000 200
2000 400
3000 600
4000 800
5000 1000

Next, I have assumed your RIGHT and LEFT columns for your actual data are in
Columns A and B on whatever sheet they are located on (with headers in Row 1
and data starting in Row 2). Put this formula in C2 and copy down as
needed...

=LOOKUP(MIN(A2:B2),Sheet2!A$2:A$8,Sheet2!B$2:B$8)

--
Rick (MVP - Excel)


"robert" wrote in message
...
PLEASE REPLY TO THIS ONE. I forgot to check the "Notify me of replies"
box.

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
--
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
function range robert Excel Worksheet Functions 1 January 24th 09 12:57 AM
Range of a function Daniel Excel Discussion (Misc queries) 3 September 18th 07 08:48 AM
Function Range Rich Excel Worksheet Functions 6 September 2nd 07 05:58 PM
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


All times are GMT +1. The time now is 01:48 AM.

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"