ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Lookup "greater than or equal to" in lookup array (https://www.excelbanter.com/new-users-excel/71833-lookup-greater-than-equal-lookup-array.html)

icemouse

Lookup "greater than or equal to" in lookup array
 
This is my first post to the discussion group, so hi all.

I'd like to be able to use a vlookup to return a value where the first
column of the lookup array is "greater than or equal" to the value of the
lookup cell. Using TRUE, of course, returns a "less than or equal to" value.
Does anyone know if there is something similar for "grater than"?

Thanks

Phil

paul

Lookup "greater than or equal to" in lookup array
 
index and match..
--
paul
remove nospam for email addy!



"icemouse" wrote:

This is my first post to the discussion group, so hi all.

I'd like to be able to use a vlookup to return a value where the first
column of the lookup array is "greater than or equal" to the value of the
lookup cell. Using TRUE, of course, returns a "less than or equal to" value.
Does anyone know if there is something similar for "grater than"?

Thanks

Phil


Niek Otten

Lookup "greater than or equal to" in lookup array
 
Sort the table descending and use

=MATCH((LookupValue,LookupArray,-1)

This gives you the relative position in the table; use INDEX() to retrieve
the item you need

--
Kind regards,

Niek Otten

"icemouse" wrote in message
...
This is my first post to the discussion group, so hi all.

I'd like to be able to use a vlookup to return a value where the first
column of the lookup array is "greater than or equal" to the value of the
lookup cell. Using TRUE, of course, returns a "less than or equal to"
value.
Does anyone know if there is something similar for "grater than"?

Thanks

Phil




icemouse

Lookup "greater than or equal to" in lookup array
 
Thanks, it works a treat!!


"Niek Otten" wrote:

Sort the table descending and use

=MATCH((LookupValue,LookupArray,-1)

This gives you the relative position in the table; use INDEX() to retrieve
the item you need

--
Kind regards,

Niek Otten

"icemouse" wrote in message
...
This is my first post to the discussion group, so hi all.

I'd like to be able to use a vlookup to return a value where the first
column of the lookup array is "greater than or equal" to the value of the
lookup cell. Using TRUE, of course, returns a "less than or equal to"
value.
Does anyone know if there is something similar for "grater than"?

Thanks

Phil






All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com