#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default VLOOKUP question

hi, I have a table similar to the one below, but much longer. I would like
to lookup to do this. For 500 in column C, the function will look for number
greater than 500 in column A (this case its 569.3) and take the number beside
in column B (this case 86.09) to column D (in D1).
thanks in advance.


A B C D
71.162 5.55 500 86.09
142.325 15.12 100
213.487 25.2 200
284.65 35.88 300
355.813 47.24 400
426.975 59.36 500
498.138 72.31 600
569.3 86.09 700
640.462 100.68 800

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default VLOOKUP question

Hi,

One problems - what to do if more than one entry meets the given condition?
For the last entry that meets the condition you can use the following array
formula:

=INDEX(B1:B9,MAX(($A$1:$A$9C1)*ROW(1:9)),0)

To be an array you must enter it by pressing Shift+Ctrl+Enter not Enter.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Raz" wrote:

hi, I have a table similar to the one below, but much longer. I would like
to lookup to do this. For 500 in column C, the function will look for number
greater than 500 in column A (this case its 569.3) and take the number beside
in column B (this case 86.09) to column D (in D1).
thanks in advance.


A B C D
71.162 5.55 500 86.09
142.325 15.12 100
213.487 25.2 200
284.65 35.88 300
355.813 47.24 400
426.975 59.36 500
498.138 72.31 600
569.3 86.09 700
640.462 100.68 800

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default VLOOKUP question

Hi,

Try this in d1

=MIN(IF($A$1:$A$9=C1,$B$1:$B$9))

'This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Raz" wrote:

hi, I have a table similar to the one below, but much longer. I would like
to lookup to do this. For 500 in column C, the function will look for number
greater than 500 in column A (this case its 569.3) and take the number beside
in column B (this case 86.09) to column D (in D1).
thanks in advance.


A B C D
71.162 5.55 500 86.09
142.325 15.12 100
213.487 25.2 200
284.65 35.88 300
355.813 47.24 400
426.975 59.36 500
498.138 72.31 600
569.3 86.09 700
640.462 100.68 800

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default VLOOKUP question

Thanks Shane,
Lets reword my prob.
For 500 in column C, the function will look for the number immidiately
greater than 500 (the first number which is greater or the smallest among
numbers larger than 500) in column A (this case its 569.3) and take the
number beside in column B (this case 86.09) to column D (in D1).


A B C D
71.162 5.55 500 86.09
142.325 15.12 100
213.487 25.2 200
284.65 35.88 300
355.813 47.24 400
426.975 59.36 500
498.138 72.31 600
569.3 86.09 700
640.462 100.68 800



"Shane Devenshire" wrote:

Hi,

One problems - what to do if more than one entry meets the given condition?
For the last entry that meets the condition you can use the following array
formula:

=INDEX(B1:B9,MAX(($A$1:$A$9C1)*ROW(1:9)),0)

To be an array you must enter it by pressing Shift+Ctrl+Enter not Enter.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Raz" wrote:

hi, I have a table similar to the one below, but much longer. I would like
to lookup to do this. For 500 in column C, the function will look for number
greater than 500 in column A (this case its 569.3) and take the number beside
in column B (this case 86.09) to column D (in D1).
thanks in advance.


A B C D
71.162 5.55 500 86.09
142.325 15.12 100
213.487 25.2 200
284.65 35.88 300
355.813 47.24 400
426.975 59.36 500
498.138 72.31 600
569.3 86.09 700
640.462 100.68 800

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default VLOOKUP question

thanks it works,
but could this be done with VLOOKUP please ????

I will need to enter this in equations. i am not sure those curly brackets
would create problem in equation.

for example if I were to do this

=F2*G4*{=MIN(IF($A$1:$A$9=C1,$B$1:$B$9))}*K25
etc.
would this work??????



"Mike H" wrote:

Hi,

Try this in d1

=MIN(IF($A$1:$A$9=C1,$B$1:$B$9))

'This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Raz" wrote:

hi, I have a table similar to the one below, but much longer. I would like
to lookup to do this. For 500 in column C, the function will look for number
greater than 500 in column A (this case its 569.3) and take the number beside
in column B (this case 86.09) to column D (in D1).
thanks in advance.


A B C D
71.162 5.55 500 86.09
142.325 15.12 100
213.487 25.2 200
284.65 35.88 300
355.813 47.24 400
426.975 59.36 500
498.138 72.31 600
569.3 86.09 700
640.462 100.68 800



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default VLOOKUP question

Hi,

Can it be done with Vlookup? No

would this work?
=F2*G4*{=MIN(IF($A$1:$A$9=C1,$B$1:$B$9))}*K25

No

But this would
=F2*G4*MIN(IF($A$1:$A$9=C1,$B$1:$B$9))*K25

Don't forget to follow the instructions for array entering formula

Mike

"Raz" wrote:

thanks it works,
but could this be done with VLOOKUP please ????

I will need to enter this in equations. i am not sure those curly brackets
would create problem in equation.

for example if I were to do this

=F2*G4*{=MIN(IF($A$1:$A$9=C1,$B$1:$B$9))}*K25
etc.
would this work??????



"Mike H" wrote:

Hi,

Try this in d1

=MIN(IF($A$1:$A$9=C1,$B$1:$B$9))

'This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Raz" wrote:

hi, I have a table similar to the one below, but much longer. I would like
to lookup to do this. For 500 in column C, the function will look for number
greater than 500 in column A (this case its 569.3) and take the number beside
in column B (this case 86.09) to column D (in D1).
thanks in advance.


A B C D
71.162 5.55 500 86.09
142.325 15.12 100
213.487 25.2 200
284.65 35.88 300
355.813 47.24 400
426.975 59.36 500
498.138 72.31 600
569.3 86.09 700
640.462 100.68 800

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 question chris832 Excel Discussion (Misc queries) 0 February 15th 08 05:02 PM
Help Please VLOOKUP question baz Excel Discussion (Misc queries) 2 February 14th 08 10:35 PM
=vlookup question scott Excel Discussion (Misc queries) 0 June 8th 06 06:14 PM
Question on Vlookup dharmik Excel Worksheet Functions 4 July 22nd 05 02:12 AM
VLOOKUP Question. StephenAccountant Excel Discussion (Misc queries) 3 July 6th 05 10:28 PM


All times are GMT +1. The time now is 07:49 AM.

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"