Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default SORTING BY ODD OR EVEN NUMBERS

I have a large list of addresses, the addresses are broken down into a column
for the house number, column for the street direction, column for street
name, and a column for the street type (St, Rd, Pkwy...etc.). What I need to
accomplish is to sort this list into even numbered properties ascending then
odd numbered properties ascending is there a way to do that or at the very
least can I identify using a formulae which are odd or which are even I would
only need to choose one value because obviously the other value is going to
be false. The house number does not always have the same number of intergers.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default SORTING BY ODD OR EVEN NUMBERS

Use the 'mod' function. If your address numbers are in column "A", then you
could place a formula like the following in some other column and drag it
down by the fill column. The function returns the word "even" if the
corresponding value in A is even and odd if the value is odd.

=IF(MOD(A1,2)=0,"even","odd")

Steve

"Singforyou1954" wrote in message
...
I have a large list of addresses, the addresses are broken down into a
column
for the house number, column for the street direction, column for street
name, and a column for the street type (St, Rd, Pkwy...etc.). What I need
to
accomplish is to sort this list into even numbered properties ascending
then
odd numbered properties ascending is there a way to do that or at the very
least can I identify using a formulae which are odd or which are even I
would
only need to choose one value because obviously the other value is going
to
be false. The house number does not always have the same number of
intergers.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 269
Default SORTING BY ODD OR EVEN NUMBERS

Add a column for Even/Odd and use this formula
=IF(EVEN(A1)=A1,"Even","Odd")

then you can use this as one of your sort drivers.

--
If this helps, please remember to click yes.


"Singforyou1954" wrote:

I have a large list of addresses, the addresses are broken down into a column
for the house number, column for the street direction, column for street
name, and a column for the street type (St, Rd, Pkwy...etc.). What I need to
accomplish is to sort this list into even numbered properties ascending then
odd numbered properties ascending is there a way to do that or at the very
least can I identify using a formulae which are odd or which are even I would
only need to choose one value because obviously the other value is going to
be false. The house number does not always have the same number of intergers.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting numbers and numbers that contain text in excel MZ Excel Discussion (Misc queries) 3 November 25th 09 07:45 AM
Sorting Numbers Donbo Excel Discussion (Misc queries) 3 February 28th 08 04:39 PM
Sorting high numbers from low numbers between two rows scotty New Users to Excel 7 February 12th 07 09:38 PM
Sorting - cells containing numbers, numbers and letters Gunny Excel Discussion (Misc queries) 5 July 16th 06 01:22 AM
Sorting numbers with differing numbers of digits Trudy Excel Discussion (Misc queries) 5 March 4th 06 12:31 PM


All times are GMT +1. The time now is 06:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"