unique sort

orsm6

Active Member
Joined
Oct 3, 2012
Messages
496
Office Version
  1. 365
Platform
  1. Windows
Hi all - is excel clever enough to: Unique range, filtered for greater than zero/blank, sort ascending AND return all the values in ever other row? if so, how would that be done?

e.g:

1
miss a row
2
miss a row
3
miss a row....etc.

many thanks.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Sorry - should have included, just assume column A holds list of values and i want to return the sorted list to C1
 
Upvote 0
Like this?

23 10 17.xlsm
ABC
121
25
332
42
53
62
705
85
999
101
fsus
Cell Formulas
RangeFormula
C1:C9C1=TEXTSPLIT(TEXTJOIN("||",,UNIQUE(SORT(FILTER(A1:A10,A1:A10>0)))),,"|")
Dynamic array formulas.
 
Upvote 1
Like this?

23 10 17.xlsm
ABC
121
25
332
42
53
62
705
85
999
101
fsus
Cell Formulas
RangeFormula
C1:C9C1=TEXTSPLIT(TEXTJOIN("||",,UNIQUE(SORT(FILTER(A1:A10,A1:A10>0)))),,"|")
Dynamic array formulas.
absolutely spot on... thank you very much.
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0
Like this?

23 10 17.xlsm
ABC
121
25
332
42
53
62
705
85
999
101
fsus
Cell Formulas
RangeFormula
C1:C9C1=TEXTSPLIT(TEXTJOIN("||",,UNIQUE(SORT(FILTER(A1:A10,A1:A10>0)))),,"|")
Dynamic array formulas.
Hi Peter - since using this formula when i try to open the workbook it crashes. i do not get any error messages. It kind of feels like it is unable to load the app. I see the sheet, the load symbol then it closes on me.

I am now unable to get back into the book to fix it. Any thoughts?
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
I think that it was because i have the formula pointed at a list that was a result of a unique formula. since changing the source, your formula continues to work and the file doesn't crash.
 
Upvote 0
It kind of feels like it is unable to load the app.
By 'app' do you mean excel itself?

Any thoughts?
I have not heard of anybody reporting such a problem with using any of the functions in that formula.
I have a workbook with that sheet, data and formulas in it and it still opens fine.

If you can start Excel without that workbook, start a new workbook, type that sample data and formula in and save the workbook. Can you now close out of Excel, open again and open that new workbook?
 
Upvote 0
I think that it was because i have the formula pointed at a list that was a result of a unique formula.
That should make no difference to the crash scenario as far as I can see.
However, it does mean that the formula that I suggested should not need the UNIQUE function since you already have a unique list. It also means the the formula can be pointed at the 'UNIQUE" spill range rather than a fixed range. I have an example below and confirm that I have still been able to close out of the workbook and/or Excel and get back in without any crash.

23 10 17.xlsm
ABCDE
1221
255
3332
420
503
629
7015
85
999
101
fsus (2)
Cell Formulas
RangeFormula
C1:C7C1=UNIQUE(A1:A10)
E1:E9E1=TEXTSPLIT(TEXTJOIN("||",,SORT(FILTER(C1#,C1#>0))),,"|")
Dynamic array formulas.
 
Upvote 0
Solution
That should make no difference to the crash scenario as far as I can see.
However, it does mean that the formula that I suggested should not need the UNIQUE function since you already have a unique list. It also means the the formula can be pointed at the 'UNIQUE" spill range rather than a fixed range. I have an example below and confirm that I have still been able to close out of the workbook and/or Excel and get back in without any crash.

23 10 17.xlsm
ABCDE
1221
255
3332
420
503
629
7015
85
999
101
fsus (2)
Cell Formulas
RangeFormula
C1:C7C1=UNIQUE(A1:A10)
E1:E9E1=TEXTSPLIT(TEXTJOIN("||",,SORT(FILTER(C1#,C1#>0))),,"|")
Dynamic array formulas.
thanks Peter - that one works :)
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,933
Members
449,134
Latest member
NickWBA

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