offset and index/match

dmj120

Active Member
Joined
Jan 5, 2010
Messages
286
Office Version
  1. 365
  2. 2019
  3. 2010
I've found a things, but I can't piece this together. From tab 1, I need to find and item on tab 2, move 1 cell left, and up to the next cell with data.

First Tab: (the small blue info is what I want to pull from tab two)
Name
Number
Description
other
77-dept
11
.......
.......
77-dept
12
.......
.......
77-dept
13
.......
.......
88-name
14
.......
.......

<tbody>
</tbody>

Second tab:
Name
Number
Descitp...
77-Dept
11
.......
12
.......
13
.......
88-name
14
.......

<tbody>
</tbody>


I've got an index/indirect/match formula to work to pull specific info, which works very well. But trying to include an offset is proving to be a hurdle. Should I be looking at a lookup() formula?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Maybe

Assuming data in columns A:D (Sheet1 and Sheet2)
Formula in A2 of Sheet1 copied down
=LOOKUP(2,1/(Sheet2!A$2:INDEX(Sheet2!A:A,MATCH(B2,Sheet2!B:B,0))<>""),Sheet2!A$2:INDEX(Sheet2!A:A,MATCH(B2,Sheet2!B:B,0)))

Hope this helps

M.
 
Last edited:
Upvote 0
Thanks! That works in the first cell on sheet 1, but when I copy down, the cells are "blank." Not sure why, the cell references look correct.
 
Upvote 0
Even more odd.... I copied the formula further down and populate and and some dont.
 
Upvote 0
Worked perfectly for me

Sheet1

A
B
C
D
1
Name​
Number​
Description​
other​
2
77-Dept​
11​
.......​
.......​
3
77-Dept​
12​
.......​
.......​
4
77-Dept​
13​
.......​
.......​
5
88-name​
14​
.......​
.......​

Formula in A2 copied down
=LOOKUP(2,1/(Sheet2!A$2:INDEX(Sheet2!A:A,MATCH(B2,Sheet2!B:B,0))<>""),Sheet2!A$2:INDEX(Sheet2!A:A,MATCH(B2,Sheet2!B:B,0)))

Sheet2

A
B
C
1
Name​
Number​
Descitp...​
2
77-Dept​
3
11​
.......​
4
12​
.......​
5
13​
.......​
6
88-name​
7
14​
.......​
8

M.
 
Upvote 0
:oops: the cell references are not the the same. I missed a "$" It's working great!! Thanks (y)


=LOOKUP(2,1/(Sheet2!A$2:INDEX(Sheet2!A:A,MATCH(B2,Sheet2!B:B,0))<>""),Sheet2!A$2:INDEX(Sheet2!A:A,MATCH(B2,Sheet2!B:B,0)))
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,011
Members
448,935
Latest member
ijat

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