Forum Discussion

Ocean818's avatar
Ocean818
Copper Contributor
Feb 01, 2024
Solved

Create list based on multiple criteria

Hi everyone!   I am creating a task priority matrix in Excel and am stumped on the exact formula I need to accomplish what I am looking for.   Column R is where I enter daily tasks, and Columns T...
  • m_tarler's avatar
    Feb 01, 2024
    Assuming you have Excel 365 I think the easiest solution would be 4 formulas like this:
    c4 = WRAPCOLS( FILTER(R:R, (T:T="High")*(U:U="High"), ""), 16, "")
    then J4, C20, and J20 would have the same formula except replacing "High" with "Low" accordingly
    Now this assume the quadrants will have enough spots to accomodate the number of tasks found. Alternatively you could get 'fancy' and build the whole table at 1 time to guarantee it will fit all the data. Basically in C2 I would have a LET statement with HH, HL, LH, and LL defined as the formulas above and then VSTACK and HSTACK accordingly. You might consider if it makes more sense to fix the number of rows or number of columns. but something like:
    =LET(
    HH, WRAPCOLS( FILTER(R:R, (T:T="High")*(U:U="High"), ""), 16, ""),
    HL, WRAPCOLS( FILTER(R:R, (T:T="High")*(U:U="Low"), ""), 16, ""),
    LH, WRAPCOLS( FILTER(R:R, (T:T="Low")*(U:U="High"), ""), 16, ""),
    LL, WRAPCOLS( FILTER(R:R, (T:T="Low")*(U:U="Low"), ""), 16, ""),
    HSTACK(VSTACK(HH,LH), VSTACK(HL,LL)) )

Resources