Help with Array Formulae

AB1984

New Member
Joined
May 12, 2016
Messages
17
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
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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