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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,216,096
Messages
6,128,809
Members
449,468
Latest member
AGreen17

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