Hello,
So I have been trying to get this Array formula to work with multiple possibilities:
=INDEX(tbl, SMALL(IF((INDEX(tbl, , $P$3, 1)<=$P$2)*(INDEX(tbl, , $P$3, 1)>=$P$1), ROW(tbl)-MIN(ROW(tbl))+1, ""), ROWS(T3:$T$3)), , 1)
There are 2 ways I have tried to make this work with the "OR" function.
Attempt #1
=INDEX(tbl, SMALL(IF(OR((INDEX(tbl, , 1, 1)<="Plumbing")*(INDEX(tbl, , 1, 1)>="Plumbing"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical"),(INDEX(tbl, , 1, 1)<="Plumbing,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior"),(INDEX(tbl, , 1, 1)<="Plumbing,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Exterior"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Exterior"),(INDEX(tbl, , 1, 1)<="Plumbing,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior,Exterior"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior,Exterior")), ROW(tbl)-MIN(ROW(tbl))+1, ""), ROWS(T3:$T$3)), , 1)
Attempt #2
=INDEX(tbl, SMALL(OR(
IF((INDEX(tbl, , 1, 1)<="Plumbing")*(INDEX(tbl, , 1, 1)>="Plumbing"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)))))
The first one works, however instead of only carrying over the requested rows, it pulls over all of the rows.
The second attempt returns an error as though it was not a formula... which doesn't make sense either as all of the different pieces are opened, closed and filled in properly.
What I have is a large list of items, numbers, descriptions etc. I am trying to sparse out only those rows that meet the above criteria in a constantly updating list. I have placed a data-validation-list in column A.
Anyone have any ideas? If there is a better way to do this, please let me know. If this is not possible, that would be nice to know too.
If you need more information as well, let me know and I'll see what I can do.
Thank you,
TKB
So I have been trying to get this Array formula to work with multiple possibilities:
=INDEX(tbl, SMALL(IF((INDEX(tbl, , $P$3, 1)<=$P$2)*(INDEX(tbl, , $P$3, 1)>=$P$1), ROW(tbl)-MIN(ROW(tbl))+1, ""), ROWS(T3:$T$3)), , 1)
There are 2 ways I have tried to make this work with the "OR" function.
Attempt #1
=INDEX(tbl, SMALL(IF(OR((INDEX(tbl, , 1, 1)<="Plumbing")*(INDEX(tbl, , 1, 1)>="Plumbing"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical"),(INDEX(tbl, , 1, 1)<="Plumbing,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior"),(INDEX(tbl, , 1, 1)<="Plumbing,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Exterior"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Exterior"),(INDEX(tbl, , 1, 1)<="Plumbing,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior,Exterior"),(INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior,Exterior")), ROW(tbl)-MIN(ROW(tbl))+1, ""), ROWS(T3:$T$3)), , 1)
Attempt #2
=INDEX(tbl, SMALL(OR(
IF((INDEX(tbl, , 1, 1)<="Plumbing")*(INDEX(tbl, , 1, 1)>="Plumbing"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Interior,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)),
IF((INDEX(tbl, , 1, 1)<="Plumbing,Electrical,Interior,Exterior")*(INDEX(tbl, , 1, 1)>="Plumbing,Electrical,Interior,Exterior"), (ROW(tbl)-MIN(ROW(tbl))+1, ""), (ROWS(T3:$T$3), , 1)))))
The first one works, however instead of only carrying over the requested rows, it pulls over all of the rows.
The second attempt returns an error as though it was not a formula... which doesn't make sense either as all of the different pieces are opened, closed and filled in properly.
What I have is a large list of items, numbers, descriptions etc. I am trying to sparse out only those rows that meet the above criteria in a constantly updating list. I have placed a data-validation-list in column A.
Anyone have any ideas? If there is a better way to do this, please let me know. If this is not possible, that would be nice to know too.
If you need more information as well, let me know and I'll see what I can do.
Thank you,
TKB