Hi All,
I have data similar to this
[TABLE="width: 500"]
<tbody>[TR]
[TD]Prov1[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Prov2[/TD]
[TD]Y[/TD]
[TD]Y [/TD]
[TD]Y[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
In a table that gets pasted into every month (this adds an extra column to what is there already)
I would like to construct an array formula on a different sheet that will pick out the the nth (i.e. the formula picks out the first, then as it's filled down pulls out the 2nd, 3rd etc.) Prov's name where the last two columns are equal to '-'.
I managed to retool some code I found online to pull out those Provs that have all '-'s, but making it the last two is eluding me.
The formula I've used to for the all '-'s is:
{=IFERROR(INDEX('Data Submissions'!$A$1:$BH$58,SMALL(IF(INDEX('Data Submissions'!$A$1:$BH$58,,1) = 1,MATCH(ROW('Data Submissions'!$A$1:$BH$58),ROW('Data Submissions'!$A$1:$BH$58)),""),ROWS($B7:C$7)),COLUMNS($B$1:C1)),"")}
Can anyone tell me how I can tweak this (if possible) to check that the last two columns (after the new data being added, preferably) contain '-' and return the Prov.
any help greatly appreciated
I have data similar to this
[TABLE="width: 500"]
<tbody>[TR]
[TD]Prov1[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Prov2[/TD]
[TD]Y[/TD]
[TD]Y [/TD]
[TD]Y[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
In a table that gets pasted into every month (this adds an extra column to what is there already)
I would like to construct an array formula on a different sheet that will pick out the the nth (i.e. the formula picks out the first, then as it's filled down pulls out the 2nd, 3rd etc.) Prov's name where the last two columns are equal to '-'.
I managed to retool some code I found online to pull out those Provs that have all '-'s, but making it the last two is eluding me.
The formula I've used to for the all '-'s is:
{=IFERROR(INDEX('Data Submissions'!$A$1:$BH$58,SMALL(IF(INDEX('Data Submissions'!$A$1:$BH$58,,1) = 1,MATCH(ROW('Data Submissions'!$A$1:$BH$58),ROW('Data Submissions'!$A$1:$BH$58)),""),ROWS($B7:C$7)),COLUMNS($B$1:C1)),"")}
Can anyone tell me how I can tweak this (if possible) to check that the last two columns (after the new data being added, preferably) contain '-' and return the Prov.
any help greatly appreciated