Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel Sort
I have a column of odd and even numbers and would like to move numbers
ending in a odd number to one column and those ending in an even number in a separate column. Could you expain how I might do that? Thank you. 1800 1801 1802 1803 1805 1805 1807 1808 1809 1806 1806 1806 1808 1811 1811 -- Templar |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel Sort
=IF(MOD(A2),A2,"") in the odd column
=IF(MOD(A2),"",A2) in the even column -- David Biddulph "Templar" wrote in message ... I have a column of odd and even numbers and would like to move numbers ending in a odd number to one column and those ending in an even number in a separate column. Could you expain how I might do that? Thank you. 1800 1801 1802 1803 1805 1805 1807 1808 1809 1806 1806 1806 1808 1811 1811 -- Templar |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel Sort
Try this:
data - is a defined name range odd values: In B2: =IF(ISERR(SMALL(IF(MOD(data,2)=1,ROW(INDIRECT("1:" &ROWS(data)))),ROWS($1:1))),"",INDEX(data,SMALL(IF (MOD(data,2)=1,ROW(INDIRECT("1:"&ROWS(data)))),ROW S($1:1)))) even values In C2: =IF(ISERR(SMALL(IF(MOD(data,2)=0,ROW(INDIRECT("1:" &ROWS(data)))),ROWS($1:1))),"",INDEX(data,SMALL(IF (MOD(data,2)=0,ROW(INDIRECT("1:"&ROWS(data)))),ROW S($1:1)))) Both formulae are required Ctrl+Shift+Enter, not just Enter copy down as far as needed "Templar" wrote: I have a column of odd and even numbers and would like to move numbers ending in a odd number to one column and those ending in an even number in a separate column. Could you expain how I might do that? Thank you. 1800 1801 1802 1803 1805 1805 1807 1808 1809 1806 1806 1806 1808 1811 1811 -- Templar |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel Sort
Your formulae don't work
=IF(MOD(A2),A2,"") in the odd column =IF(MOD(A2),"",A2) in the even column try like this: =IF(MOD(A2,2),A2,"") =IF(MOD(A2,2),"",A2) "David Biddulph" wrote: =IF(MOD(A2),A2,"") in the odd column =IF(MOD(A2),"",A2) in the even column -- David Biddulph "Templar" wrote in message ... I have a column of odd and even numbers and would like to move numbers ending in a odd number to one column and those ending in an even number in a separate column. Could you expain how I might do that? Thank you. 1800 1801 1802 1803 1805 1805 1807 1808 1809 1806 1806 1806 1808 1811 1811 -- Templar |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel Sort
Yes, absolutely right.
-- David Biddulph "Teethless mama" wrote in message ... Your formulae don't work =IF(MOD(A2),A2,"") in the odd column =IF(MOD(A2),"",A2) in the even column try like this: =IF(MOD(A2,2),A2,"") =IF(MOD(A2,2),"",A2) "David Biddulph" wrote: =IF(MOD(A2),A2,"") in the odd column =IF(MOD(A2),"",A2) in the even column -- David Biddulph "Templar" wrote in message ... I have a column of odd and even numbers and would like to move numbers ending in a odd number to one column and those ending in an even number in a separate column. Could you expain how I might do that? Thank you. 1800 1801 1802 1803 1805 1805 1807 1808 1809 1806 1806 1806 1808 1811 1811 -- Templar |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sort sheet based on particuilar sort order | Excel Worksheet Functions | |||
sort function for dates does not sort properly in Office 2007 Exc. | Excel Worksheet Functions | |||
Sort from SQL view does not sort in EXCEL | Excel Discussion (Misc queries) | |||
Excel sort by Fill Color by custom list sort | Excel Discussion (Misc queries) | |||
Excel Sort function should not sort the cell formatting! | Excel Worksheet Functions |