View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Finding a value associated with a range

Hlookup won't work.

The OP seems to want the lowest value that is greater than the lookup value
if there's not an exact match.

Reverse the order of the table.

1450 1250 950 600 400
55 50 45 30 15


A5 = lookup value = 425

=IF(A5A1,A2,INDEX(A2:E2,MATCH(A5,A1:E1,-1)))

Biff

"Niek Otten" wrote in message
...
Look in HELP for the HLOOKUP() function

--
Kind regards,

Niek Otten

"Raymond Gallegos" wrote in
message ...
Hello. I am attempting to create a formula that searches through a range
of values to identify where a number falls within the range and then,
once
identified, takes an associated value as a multiplier in the formula.
Here is
the range data:

A B C D E
1 400 600 950 1250 1450
2 $15 $30 $45 $50 $55

Lookup value: 425

Based on these values, I need a formula to search a1 through e1 and
return the value in B2 ($30) associated with 600 (because 425 is over
400, but not greater than 600) and allow me to then multiply the lookup
value of 425 by the value returned (e.g., $30) giving me a result of
$12,750.
It's tough even describing what I want, but hopefully someone understands
and can assist me ASAP. Thank you.