Adding blank rows between UNIQUE FILTER list

milovskilab

New Member
Joined
Jul 24, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi! Been scratching my head with this all afternoon - I want to filter a long list to give me unique values, but I want my new list to have 3 spare rows between each item.

I have used an excellent formula that i found on this forum, but it is consistently ignoring the last item on my filtered list... can anyone help please!

The formula is

=LET(u,SORT(UNIQUE(FILTER(Stk_Trans[[#All],[STOCK_CODE]],Stk_Trans[[#All],[STOCK_CODE]]<>""))),s,SEQUENCE(ROWS(u)*2-1,,,0.75),IF(MOD(s,1)<>0,"",INDEX(u,s)))

And it works like a dream apart from ignoring the last item on the filtered list. I am sure i am missing something really simple, but I just can't see it!

Thanks in advance, you clever people!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I couldn't quite reproduce what you had.

MrExcelPlayground19.xlsx
IJ
27AA
28B
29C
30D
31EB
32F
33G
34
35C
36
37
38
39D
40
41
42
43E
44
45
46
47F
48
49
50
51G
Sheet1
Cell Formulas
RangeFormula
J27:J51J27=LET(u,I27:I33,s,SEQUENCE(ROWS(u)*4-3,,,0.25),IF(MOD(s,1)<>0,"",INDEX(u,s)))
Dynamic array formulas.
 
Upvote 1
I couldn't quite reproduce what you had.

MrExcelPlayground19.xlsx
IJ
27AA
28B
29C
30D
31EB
32F
33G
34
35C
36
37
38
39D
40
41
42
43E
44
45
46
47F
48
49
50
51G
Sheet1
Cell Formulas
RangeFormula
J27:J51J27=LET(u,I27:I33,s,SEQUENCE(ROWS(u)*4-3,,,0.25),IF(MOD(s,1)<>0,"",INDEX(u,s)))
Dynamic array formulas.
Perfect! Thank you - it was the *4-3,,,0.25 that fixed it for me. Thank you so much!
 
Upvote 0
If you have the functions available:

Excel Formula:
=TOCOL(LET(u,SORT(UNIQUE(FILTER(Stk_Trans[[#All],[STOCK_CODE]],Stk_Trans[[#All],[STOCK_CODE]]<>""))),EXPAND(u,,4,"")))
 
Upvote 1

Forum statistics

Threads
1,223,705
Messages
6,173,996
Members
452,542
Latest member
Bricklin

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