Search for third instance

30percent

Board Regular
Joined
May 5, 2011
Messages
123
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Excel Formula:
=INDEX('Sheet1'!$A:$A,MATCH(TRIM($B28),'Sheet1'!$A:$A,0)+4)

I have the following formula that look up value in cell B28 in 'Sheet1'!$A:$A and return value from the cell 4 rows below that. Say value in B28 is "test". How do I change my formula so that, it would return value from the cell 4 rows below not the first instance but the 3rd instance of "test"?

thanks.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try:

Book2
ABC
1List
2test
3a
4b
5c
6d
7e
8f
9test
10g
11h
12i
13j
14k
15l
16m
17n
18test
19o
20p
21q
22r
23s
24t
25u
26test
27v
28w test r
29x
30y
31z
Sheet1
Cell Formulas
RangeFormula
C28C28=INDEX(Sheet1!$A:$A,AGGREGATE(15,6,ROW(Sheet1!$A:$A)/(Sheet1!$A:$A=TRIM($B28)),3)+4)
 
Upvote 0
Another option:
Excel Formula:
=IFERROR(INDEX(Sheet1!$A:$A,SMALL(IF(Sheet1!$A:$A=$B$28,ROW(Sheet1!$A:$A),""),3)+4),"")
 
Upvote 0
Neglected to add formula above is an array formula and needs to be entered with CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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