BrettOlbrys1
Board Regular
- Joined
- May 1, 2018
- Messages
- 128
- Office Version
- 365
- Platform
- Windows
Is it possible to use Filter & Sequence together in one formula?
I have 1,000 rows of data in columns A, B, C, and D.
Column A = Customer Name
Column B = Market Segment
Column C = Qty
Column D = Product
I want to return the Top 5 rows of data based on QTY (greatest to least) and limit it to 5 rows, even if there are duplicate qty's. Right now, I have the following formula:
D2 = Product Y
SORT(FILTER(CSR_Activations,(CSR_Activations[Qty]>=(LARGE(IF(CSR_Activations[Product]=D2,CSR_Activations[Qty]),5)))*(CSR_Activations[Product]=D2)),3,-1)
When there are duplicate qty's that bring my total line count to greater than 5, I get a SPILL error because I have other tables below this section. I know with the SEQUENCE command I can limit it to 5 rows, but I have been unable to combine the two functions so that I only return the Top 5 rows with data in columns A, B, C, and D.
I have 1,000 rows of data in columns A, B, C, and D.
Column A = Customer Name
Column B = Market Segment
Column C = Qty
Column D = Product
I want to return the Top 5 rows of data based on QTY (greatest to least) and limit it to 5 rows, even if there are duplicate qty's. Right now, I have the following formula:
D2 = Product Y
SORT(FILTER(CSR_Activations,(CSR_Activations[Qty]>=(LARGE(IF(CSR_Activations[Product]=D2,CSR_Activations[Qty]),5)))*(CSR_Activations[Product]=D2)),3,-1)
When there are duplicate qty's that bring my total line count to greater than 5, I get a SPILL error because I have other tables below this section. I know with the SEQUENCE command I can limit it to 5 rows, but I have been unable to combine the two functions so that I only return the Top 5 rows with data in columns A, B, C, and D.