Array Formula Help...

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,831
Office Version
  1. 2010
Platform
  1. Windows
With an array formula like:

=IF(ROWS($G$3:G3)>$K$6,"",INDEX(Date,SMALL(IF(Taken=1,ROW(Date)-ROW(INDEX(Date,1))+1),ROWS($G$3:G3))))

How would I replace the name range "Taken" with a range like "$A$5:$D$50" and instead of the named range "Taken" how would I look in the 2nd column of $A$5:$D$50 for equal to 1 please?

Hope that makes sense...
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Something like

=IFERROR($A:$A,AGGREGATE(15,6,ROW($B$5:$B$50)/($B$5:$B$50=1),ROWS($G$3:$G3)),"")

Does not need array confirmation.
 
Upvote 0
Hello Jason... My poor OP... I want to select which column by a dropdown and a column header match in "A4:D4"
 
Upvote 0
Part of it was my error, I just noticed a big typo, INDEX( is missing from the formula :oops:

G1 is the dropdown.

=IFERROR(INDEX($A:$D,AGGREGATE(15,6,ROW($B$5:$B$50)/($B$5:$B$50=1),ROWS($G$3:$G3)),MATCH($G$1,$A$4:$D$4,0)),"")

I'm still not sure that it will be what you want thought, you've mentioned A:D for the result and B (second column of A:D) for the criteria. I've assumed that only the result column changes.
 
Upvote 0
Thanks Jason... I'll drop that in to my workbook tomorrow and have a look...
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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