Return unique numbers by even or uneven filter

CV12

Board Regular
Joined
Apr 6, 2020
Messages
82
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello everyone,

Can someone help me with this case? In col A I have the numbers 1-30.
I would like to have all the unique even numbers in col D, and all the unique uneven numbers in col F.

The numbers in col A can be much more.

Thanks in advance!


Book1
ABCDEF
1121
2243
3365
4487
55109
661211
771413
881615
991817
10102019
11112221
12122423
13132625
14142827
15153029
1616
1717
1818
1919
2020
2121
2222
2323
2424
2525
2626
2727
2828
2929
3030
Sheet1
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
In D1 put: =UNIQUE(FILTER(A:A,(MOD(A:A,2)=0),""))

In F1 put: =UNIQUE(FILTER(A:A,(MOD(A:A,2)=1),""))
 
Last edited:
Upvote 0
Solution
Kevin,

Can you help me one more time with this formula?

In D1 put: =UNIQUE(FILTER(A:A,(MOD(A:A,2)=0),""))

I can't get to remove the last zero in the column. Why doesn't <> work after the A:A?
 
Upvote 0
Kevin,

Can you help me one more time with this formula?

In D1 put: =UNIQUE(FILTER(A:A,(MOD(A:A,2)=0),""))

I can't get to remove the last zero in the column. Why doesn't <> work after the A:A?
Try this

In D1: =UNIQUE(FILTER(I:I,(MOD(I:I,2)=0)*(I:I<>""),""))

In F1: =UNIQUE(FILTER(I:I,(MOD(I:I,2)=1)*(I:I<>""),""))
 
Upvote 0
Kevin,

Would there be a way to reverse the numbering? So that it starts with the highest number and goes down?
 
Upvote 0
To sort them with the highest number on top, descending downwards

In D1: =SORT(UNIQUE(FILTER(A:A,(MOD(A:A,2)=0)*(A:A<>""),"")),,-1)

In F1: =SORT(UNIQUE(FILTER(A:A,(MOD(A:A,2)=1)*(A:A<>""),"")),,-1)

To change the sort order to Ascending (smallest on top) simply change the last bit -1) to 1) (lose the minus sign)
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,042
Members
449,063
Latest member
ak94

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