Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
wstruse
 
Posts: n/a
Default sorting whole numbers


Could someone tell me how to sort out the whole numbers in a column of
mixed numbers? (decimals and whole numbers )

Thank you in advance,

wstruse


--
wstruse
------------------------------------------------------------------------
wstruse's Profile: http://www.excelforum.com/member.php...o&userid=25071
View this thread: http://www.excelforum.com/showthread...hreadid=385897

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Assuming your numbers are in column A, in a free column, enter

=ABS((A1-ROUND(A1,0))) < 1E-10

and copy down. Sort on this column. The TRUE values are whole numbers.

Adjust 1E-10 to be smaller than the precision of your values (e.g., if
your values have a maximum of 2 places after the decimal point, you
could, if you wanted to, use 1E-04 instead.

In article ,
wstruse wrote:

Could someone tell me how to sort out the whole numbers in a column of
mixed numbers? (decimals and whole numbers )

Thank you in advance,

wstruse

  #3   Report Post  
wstruse
 
Posts: n/a
Default


JE McGimpsey,

That worked great. I have over 800,000 cells to look through and you
just saved me many hours of time.

Thank you,

William Struse


--
wstruse
------------------------------------------------------------------------
wstruse's Profile: http://www.excelforum.com/member.php...o&userid=25071
View this thread: http://www.excelforum.com/showthread...hreadid=385897

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

You could also use

=INT(A1)+A1

or

=MOD(A1,1)=0

--

HTH

RP
(remove nothere from the email address if mailing direct)


"wstruse" wrote in
message ...

JE McGimpsey,

That worked great. I have over 800,000 cells to look through and you
just saved me many hours of time.

Thank you,

William Struse


--
wstruse
------------------------------------------------------------------------
wstruse's Profile:

http://www.excelforum.com/member.php...o&userid=25071
View this thread: http://www.excelforum.com/showthread...hreadid=385897



  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Don't see how

=INT(A1)+A1

would work.

The only problem with MOD(A1,1)=0 is that, for calculated values, a
small rounding error gives a false negative.


In article ,
"Bob Phillips" wrote:

You could also use

=INT(A1)+A1

or

=MOD(A1,1)=0

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 alphanumeric numbers maurice.centner Excel Discussion (Misc queries) 2 May 6th 05 02:00 AM
Sorting Numbers bcboy4ca Excel Discussion (Misc queries) 1 April 21st 05 06:58 PM
sorting numbers more than one decimal Erin Excel Worksheet Functions 4 March 9th 05 07:19 PM
Sorting when some numbers have a text suffix confused on the tundra Excel Discussion (Misc queries) 5 December 18th 04 10:19 PM
Sorting imported "numbers" Confused on the tundra Excel Discussion (Misc queries) 5 December 17th 04 07:33 PM


All times are GMT +1. The time now is 10:05 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"