#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Vlookup, next value

Hi,

I am doing a vertical seach in a matrix.
Let's say:
1 10
2 20
3 30
4 40

If I enter =Vlookup(2.5;matrix;2)
I obtain 20.

However, I would like to have the next value, 30 !

I have seach a lot and I have tried formulas like "Cells" but nothing worked.

How can i do that?

Thank you very much,

Alex

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Vlookup, next value

Alexandre, try this out:

=VLOOKUP(ROUNDUP(2.5,0),matrix,2)

The ROUNDUP() function rounds the number up to basically 3 and thus matches
the 30 you are looking for.

Cheers,
Socratis

"Alexandre Campeau" wrote:

Hi,

I am doing a vertical seach in a matrix.
Let's say:
1 10
2 20
3 30
4 40

If I enter =Vlookup(2.5;matrix;2)
I obtain 20.

However, I would like to have the next value, 30 !

I have seach a lot and I have tried formulas like "Cells" but nothing worked.

How can i do that?

Thank you very much,

Alex

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Vlookup, next value


Alex

You might want to create a "helper" cell. If say your value 2.5 is in
cell A1, in B1 enter the formula = Round(A1, 0 )

The Round function will round 2.5 to 3 and 2.4 to 2. Otherwise use the
Roundup function which will round any number from 2..01 and 2.99 to 3

then Use the value in B1 in your Vlookup formula


Hope this helps

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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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