Forum Discussion
excelzero
Jul 01, 2024Copper Contributor
Help: Creating a List Based on Two Values From a Data Set
Hi! Struggling with a rather basic issue: I need to pull the name of a class in a list based on "Active" status. Here is how the data is laid out now: I want to be able to have a formula find ...
- Jul 01, 2024
=INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5="Active",ROW($B$2:$B$5)-1),D2))
This formula works in my sample file. The formula must be entered as an arrayformula with ctrl+shift+enter if someone doesn't work with Office 365 or Excel for the web or Excel 2021.
PeterBartholomew1
Jul 01, 2024Silver Contributor
I suspect you are not using Excel 365, otherwise the task would be straightforward.
= LET(
activeList, FILTER(name, status="Active"),
seq, SEQUENCE(COUNTA(activeList)),
HSTACK(seq, activeList)
)