Need help with the Filter function

gsdanger

Board Regular
Joined
Jul 12, 2010
Messages
92
Office Version
  1. 365
Platform
  1. Windows
Hi all at Mr Excel,
I ‘m using the FILTER function to extract data from a website column.
The column displays data from different dates, in the column.
The rows are dynamic and change every day, so I cannot use the row reference in the formula.
I want to extract (for example) the 2nd entry from column J into a new cell.
Can I do this with the Filter function?
The rows
Change every day.
Dates​
Dist​
Result of Extraction​
ROW
I​
J​
2001 Mar 25
2500​
2200​
2103 Mar 25
2200​
2208 Mar 25
1590​
23
24..ETC…
My Function formula is:
=Filter($J$21:$J24,$J$20:$J$23=Dist) ?? I'm sure this formula is incomplete, and will not work.
I need your assistance please. :)

Kind Regards.

Gsdanger.
 
You can use the INDEX function:

Excel Formula:
=INDEX($J$20:$J$24,2)
 
Upvote 0
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
2=INDEX($J$5:$J$14,2)I TRIED TO INCORPORATE THE INDEX AND THE FILTER FORMULAS TO ACHIEVE MY GOAL.ALAS, IT DIDN'T WORK..
3I WANT THE 2ND ENTRY OF EACH RECORD TO BE EXTRACTED.
4The result of the above formula is below:
5Dist=INDEX(FILTER($I$5:$J$13,$J$5:$J$13),2)
6112500122001220002200
72200214502220002200
81950319503220002200
9221250220002200
101450220002200
111600220002200
12332000220002200
131950220002200
141650220002200
15
16
17
Sheet1
Cell Formulas
RangeFormula
O6:O14O6=INDEX($J$6:$J$15,2)
Q6:R14Q6=INDEX(FILTER($I$6:$J$14,$J$6:$J$14),2)
Dynamic array formulas.
 
Upvote 0
Hi Eric,
Thank you for your reply. I have tried to get the formulas working, however with no luck. The option you gave me, seems to select the entry number (1,2, ro 3) instead of the 2nd entry of each record.Can you please help me with this problem?
In anticipation of your response, Thank you.

Kind Regards
gsdanger
 
Upvote 0
You can do something like this:

Book1
GHIJKLM
1
2
3I WANT THE 2ND ENTRY OF EACH RECORD TO BE EXTRACTED.
4
5Dist
611250012200
7220021450
8195031950
9221250
101450
111600
12332000
131950
141650
15
Sheet7
Cell Formulas
RangeFormula
L6:M8L6=LET(k,I6:I20,r,J6:J20,f,FILTER(k,k<>""),t,INDEX(r,MATCH(f,k,0)+1),HSTACK(f,t))
Dynamic array formulas.


More details were helpful. In this case, the +1 in the formula means you want the row 1 below the key.
 
Upvote 0
Solution
Thanks Eric,
That worked...Hooray. Once again, thank you.
kind Regards...
gsdanger :)
 
Upvote 0

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