Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bp
 
Posts: n/a
Default Next largest value that is greater than lookup_value.

How do I find next largest value that is greater than lookup_value using the
lookup function or any other functions?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=INDEX(A1:A10,MATCH(SMALL(A1:A10,COUNTIF(A1:A10,"< "&C1)+1),A1:A10,0))

where A1:A10 is the lookup range and C1 the lookup value

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"bp" wrote in message
...
How do I find next largest value that is greater than lookup_value using
the
lookup function or any other functions?



  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

One way:

=MIN(IF(A1:A10C1,A1:A10))

Array-entered, meaning press ctrl/shift/enter. Your range
to evaluate is A1:A10 and C1 holds the lookup value.

HTH
Jason
Atlanta, GA

-----Original Message-----
How do I find next largest value that is greater than

lookup_value using the
lookup function or any other functions?
.

  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

Hi Peo. I think you mean <= , not < .

Jason

-----Original Message-----
One way

=INDEX(A1:A10,MATCH(SMALL(A1:A10,COUNTIF(A1:A10," <"&C1)

+1),A1:A10,0))

where A1:A10 is the lookup range and C1 the lookup value

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"bp" wrote in message
...
How do I find next largest value that is greater than

lookup_value using
the
lookup function or any other functions?



.

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Hi Jason,

it depends on if the OP really wants the next larger value even if it is an
exact match, I wasn't sure about that

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Jason Morin" wrote in message
...
Hi Peo. I think you mean <= , not < .

Jason

-----Original Message-----
One way

=INDEX(A1:A10,MATCH(SMALL(A1:A10,COUNTIF(A1:A10, "<"&C1)

+1),A1:A10,0))

where A1:A10 is the lookup range and C1 the lookup value

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"bp" wrote in message
...
How do I find next largest value that is greater than

lookup_value using
the
lookup function or any other functions?



.



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 cells largest to smallest jim314 Excel Discussion (Misc queries) 1 January 10th 05 09:01 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 7th 04 10:50 PM
input value in a cell when the previous cell is greater than 0 vinod New Users to Excel 1 December 2nd 04 06:15 PM
Linking items GREATER THAN O on another worksheet in the same Work Eddie Shapiro Excel Discussion (Misc queries) 4 December 1st 04 02:55 PM


All times are GMT +1. The time now is 11:29 AM.

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"