Searching without Vlookup shortcomings

Ben51

New Member
Joined
Feb 29, 2016
Messages
14
Hello everyone,

I am in sheet 2 A2.

I would like to search a row (10) from sheet 1 to match sheet 2 A1.

If i have a match,

I would like to search the row below (11) from the reference cell (i.e. AG10) for the next column encountered that contains a 5.

When i encounter a 5 in the column i would like to return the value from a particular row (column match row 449)


Thanks in advance guys!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Bit hard to follow, but does this do it?

Note that I have assumed a limit on the columns of column CZ in Sheet 1.


Excel 2010 32 bit
ABCDEFGH
10texttexttextabctexttexttexttext
1155
12
444
445
446a
447b
448c
449d
450e
Sheet 1




Excel 2010 32 bit
A
1abc
2d
Sheet 2
Cell Formulas
RangeFormula
A2=INDEX('Sheet 1'!A449:CZ449,MATCH(A1,'Sheet 1'!A10:CZ10,0)+MATCH(5,INDEX('Sheet 1'!A11:CZ11,MATCH(A1,'Sheet 1'!A10:CZ10,0)+1):'Sheet 1'!CZ11,0))
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

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