vlookup with offset rows

krokodilizm

New Member
Joined
Feb 3, 2016
Messages
20
I have the below problem analyzing a bank movement

mDKq9gZ.png


I want to filter out all JOHN payments but as you can see the amount is out of sync with the term 'john' by 6 rows. This pattern is consistent throughout the spreadsheet. How can I quickly filter all John payments?
I was thinking some sort of vlookup function with rows offset by 6, but how?

Thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I have the below problem analyzing a bank movement

mDKq9gZ.png


I want to filter out all JOHN payments but as you can see the amount is out of sync with the term 'john' by 6 rows. This pattern is consistent throughout the spreadsheet. How can I quickly filter all John payments?
I was thinking some sort of vlookup function with rows offset by 6, but how?

Thanks

=INDEX($D$2:$D$100,MATCH("John",$B$2:$B$100,0)-6)
 
Last edited:
Upvote 0
Hey thanks. It works but there are two problems with this, hope you can help:

1. The formula returns error when the term "John" is used. It returns the correct number when I use the cell reference instead, i.e. B8. Any reason?

2. When I drag down the formula it collapses (always brings the number 5000). This formula is used for only one match? Remember I need all payments from John...

Thanks

P.S. I actually found a primitive method to filter this. I simply insert 6 cells on top of column D so that John and the amounts are aligned and then use proper filter... I like the formula though, if it can be extended to return multiple values by dragging down.
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,316
Members
448,564
Latest member
ED38

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