Lookup problem

Zaigham

Board Regular
Joined
Dec 22, 2010
Messages
159
Office Version
  1. 2021
Platform
  1. Windows
  2. Mobile
Hi
With reference to my previous thread “FIND COLUMN NUMBER” at http://www.mrexcel.com/forum/showthread.php?t=561419&goto=newpost mainly with INDEX() I have achieved my goal to find a certain amount on point to point basis in a different row and column.
Unfortunately at other step I am again in dark. My second goal was to find a certain value in a higher stage. I was thinking that it would be done easily with the help of =VLOOKUP() or =HLOOKUP() but I am unable to find my way. I have uploaded my file at http://www.mediafire.com/?wf9d22fycm2j400 .
I need more help.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Not sure exactly what you're asking for. Is this anywhere close?

Excel Workbook
BCDEFGH
2BPS012345
31E2,9703,0603,1503,2403,3303,420
41P4,3454,4904,6354,7804,9255,070
52E3,0353,1353,2353,3353,4353,535
62P4,8555,0155,1755,3355,4955,655
73E3,1403,2603,3803,5003,6203,740
83P5,0205,2105,4005,5905,7805,970
94E3,2403,3803,5203,6603,8003,940
104P5,1805,4005,6205,8406,0606,280
115E3,3403,5003,6603,8203,9804,140
125P5,3405,5955,8506,1056,3606,615
13
14
153E35003520
162E35353620
Sheet1
 
Upvote 0
Same here but if you want your value to reflect closest match then try following formula for your request in PayScale2011 file:
=LOOKUP(H39,F37:Z37)
 
Upvote 0
"Thanks both guys, first I will ask "taurean" my lookup value is in cell "O37", so =LOOKUP(O37,F39:Z39) points to cell "G39" i.e., one step before which I want to extract. I need to point the value in cell "H39" in stead of "G39".

Secondly "jasonb75" in your solution is also close but I want if I input 3620 the in any row beneath the row 7 must be closed (greater than or equal to) 3620 say cell F6 = 3660 or cell C10=5180 or cell cell E11=3660. Please note that user input value are 3660 and a row heading i.e., 3E, 4E etc.
 
Upvote 0
This kept me awake for 30 minutes more than my usual bed-time so I'd be really cross if this isn't it:
=LARGE($F39:$Z39,SUMPRODUCT(--($F39:$Z39>O$37)*1))
 
Upvote 0
This kept me awake for 30 minutes more than my usual bed-time so I'd be really cross if this isn't it:
=LARGE($F39:$Z39,SUMPRODUCT(--($F39:$Z39>O$37)*1))

Hi taurean,

It works. Even though I have found solution on your previous simple advise. Because I am not well conversant with Excel or any other spreadsheet so my formula was too long =IF(ISNA(LOOKUP(N49,INDIRECT("F"&E55&":AJ"&E55))),INDIRECT("F"&E55),IF(LOOKUP(N49,INDIRECT("F"&E55&":AJ"&E55))>=N49,LOOKUP(N49,INDIRECT("F"&E55&":AJ"&E55)),LOOKUP(N49,INDIRECT("F"&E55&":AJ"&E55))+INDIRECT("C"&E55)))
You have again advised a simple formula. I really appreciate your sacrifice of your bedtime. Just thanks is not enough but what else we can do so Thank you very very much. God bless you.:)

Zaigham
 
Upvote 0
Glad that it helps. And it makes burning the night's oil worth.

The problem with LOOKUP is that it gives value which is lower than the VALUE being looked up. Had it been otherwise we would have a simple formula on our hands.

Just to explain what it does:
a. The function LARGE gives nth largest number in the specified array.
b. SUMPRODUCT gives COUNT of values larger than LOOKUP VALUE. So that is immediate larger value than LOOKUP VALUE.
 
Upvote 0
Isn't that the same as

{=MIN(IF($F39:$Z39>O$37,$F39:$Z39))}
 
Upvote 0
Yes both the commands gives the same result. However, by chance I have reached to a condition where lookup array has a value equal to lookup value. In this condition the answer is obviously greater than lookup value whereas I need the figure equal to or greater than lookup value.
Any ways thanks for your contribution.
 
Upvote 0
One possible alternative

{=small(if($F39:$Z39>=O$37,$F39:$Z39),2)}
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top