Index or offset maybe?

shadow12345

Well-known Member
Joined
May 10, 2004
Messages
1,238
I have spread sheet with a match that allows me to find row number of the item im looking for in another spread sheet.

My question can i use the row number to select information from the second spread sheet?

The information I want will always be 1 row down from the row number and two columns right.

Example
I have the result row 192

I want to target cell in the second sheet (called stats) b192 and take the information from D193.

Any ideas or suggestions?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
file is called stats (my fault i was trying something else)

AB25 is a persons name,

Eg: Shadow Excel

the problem comes because in the second sheet (stats.xls) the persons name is combined in a cell like this in coloumn B

Agent Name & ID: Shadow Excel - 2111

So i used wild cards to match the name to stats.xls


We are trying to match ab25 against B in stats and return the value from D (stats.xls) but 1 row below the match result.

That is what the 2nd formula implies:

=IF(AB25<>"",INDEX(stats.xls]Sheet1!D:D,MATCH("*"&AB25&"*",[stats.xls]Sheet1!B:B,0)+1),"")

with a small change AB25<>"" instead of AB25>1.

This formula allows you to work also when stats.xls is not open, while formulas with OFFSET and INDIRECT wouldn't.
 
Upvote 0

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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