If error and Index function for dynamic table

Gabrielle_erre

New Member
Joined
Jan 3, 2019
Messages
21
Hi, I would like to know if any of you needed the index function for dynamic column... I have the following function and I can't figure out how to make it work with Tabelle2!F column wich is Tabelle2![Name] column dynamic... in F1 I have the name of the column.
Any reccomandations replacing Tabelle2!$F$2:Tabelle2!F156 with the dynamic column's name? :eeek:

=IFERROR(INDEX(Tabelle2!$F$2:Tabelle2!F156, MATCH(0,INDEX(COUNTIF($D$1:D1,Tabelle2!$F$2:Tabelle2!F156),0),0)),"")


Thank's in advance!
Kindly,
Gabrielle
 
Last edited:

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Thank's foe your help Aladin...

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Date
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2019-01-01
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2019-01-02[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2019-01-03[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2019-01-04
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2019-01-05[/TD]
[/TR]
</tbody>[/TABLE]
Current table where in D2 I apply the formula from bellow to show me the list values (data as standard). How can I make the red part for dynamic?
=IFERROR(INDEX(Tabelle2!$F$2:Tabelle2!F156, MATCH(0,INDEX(COUNTIF($D$1:D1,Tabelle2!$F$2:Tabelle2!F156),0),0)),"")



[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Date reference[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2019-01-01[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2019-01-03[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2019-01-04[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2019-01-01[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2019-01-05[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]2019-01-02[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]2019-01-03[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]2019-01-04[/TD]
[/TR]
</tbody>[/TABLE]
Tabelle2
 
Upvote 0
Making Tabelle2!$F$2:Tabelle2!F156 dynamic horizontally or vertically? The latter means the F range can become smaller and/or larger...
 
Upvote 0
Horizontaly dynamic... If I will have rows until row F200 to not modify the formula but to make the formula dynamic.
 
Last edited:
Upvote 0
verticaly dynamic... my mistake.

Define data in Formulas | Name Manager as referring to:

=Tabelle2!$F$2:INDEX(Tabelle2!$F:$F,MATCH(9.99999999999999E+307,Tabelle2!$F:$F))


Now you can...


In D1 control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(data,data),1))

D2: Date

In D3 control+shift+enter, not just enter, and copy down:

=IF(ROWS($D$3:D3)>$D$1,"",MIN(IF(ISNA(MATCH(data,$D$2:D2,0)),data)))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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