Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Return value in table associated with next greatest

I have a table of Data:

HP COST
3 $250
5 $400
7.5 $450
10 $500
15 $650
20 $750
25 $800


User Enters 7.2

I need to return the cost associated with the next greatest HP (7.5), or $450. I know VLOOKUP would return the next less, or $400.
  #2   Report Post  
Senior Member
 
Location: Philippines
Posts: 161
Default

Quote:
Originally Posted by fuji View Post
I have a table of Data:

HP COST
3 $250
5 $400
7.5 $450
10 $500
15 $650
20 $750
25 $800


User Enters 7.2

I need to return the cost associated with the next greatest HP (7.5), or $450. I know VLOOKUP would return the next less, or $400.
Say the user inputs 7.2 in cell C1.

To output $:
=INDEX(B1:B7,MATCH(C1,A1:A7)+1)

To output HP:
=INDEX(A1:A7,MATCH(C1,A1:A7)+1)
__________________
Asobi Wa Owari Da
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
return the greatest value in a range of cells Jen Excel Discussion (Misc queries) 3 October 29th 09 06:24 PM
greatest value function? EG Excel Discussion (Misc queries) 2 September 4th 08 02:16 PM
Finding the greatest value t2true Excel Discussion (Misc queries) 4 March 21st 06 01:48 AM
Greatest to smallest Dug Excel Discussion (Misc queries) 3 December 4th 05 06:58 PM
Displaying Greatest to Least? Losse Excel Discussion (Misc queries) 2 July 14th 05 08:22 PM


All times are GMT +1. The time now is 11:52 PM.

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"