Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default Next highest Value

I have a list of values...
B1 0
B2 238
B3 263
B4 510
B5 585
B6 774
B7 931

=INDEX(R22:R28,MATCH(R21,R21:R28,1)) works except when there is an exact
match (i.e., 238)

I would like a formula that will, when I enter a value in A1 that if not in
the list will look up the next highest value.

A1=238 Formula returns 238 A1=24 Formula returns 263

Help I cant see the forest for the trees....




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Next highest Value

Try this array formula** :

=MIN(IF(B1:B7=A1,B1:B7))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

If the lookup value is greater than the max value of the range the result
will be 0.

--
Biff
Microsoft Excel MVP


"Thanks" wrote in message
...
I have a list of values...
B1 0
B2 238
B3 263
B4 510
B5 585
B6 774
B7 931

=INDEX(R22:R28,MATCH(R21,R21:R28,1)) works except when there is an exact
match (i.e., 238)

I would like a formula that will, when I enter a value in A1 that if not
in
the list will look up the next highest value.

A1=238 Formula returns 238 A1=24 Formula returns 263

Help I cant see the forest for the trees....






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
Highest, Second Highest , Third Highest and so on gkb Excel Discussion (Misc queries) 3 December 7th 06 12:14 PM
Display the Highest, Second Highest, Third Highest and so on... gkb Excel Discussion (Misc queries) 7 December 1st 06 10:45 PM
2 rows, highest No in row 1, then highest number in row 2 relating to that column, possible duplicates John Excel Worksheet Functions 3 August 11th 06 04:34 AM
How can i get the 3 highest in a range Roy Excel Discussion (Misc queries) 5 June 8th 06 01:31 AM
second highest value Pivotrend Excel Discussion (Misc queries) 6 February 21st 06 07:12 PM


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