+ Reply to Thread
Results 1 to 5 of 5

sorting decimals, then special format

  1. #1
    Registered User
    Join Date
    11-18-2009
    Location
    los angeles, california
    MS-Off Ver
    Excel 2000
    Posts
    14

    sorting decimals, then special format

    Hi, in column A I have something like this:
    0+25.000
    0+50.000
    0+51.000
    0+75.000
    0+75.010
    1+25.000
    1+50.000
    1+75.000
    etc.....

    I have 2 questions:
    1) How do I sort out the ones that are not round numbers? In this example 0+51.000 and 0+75.010.

    2) How do I copy only the "+ part" without decimals, i.e: +25, +50, +75 to another column keeping the same sequence for the whole column?
    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: sorting decimals, then special format

    1) Why is 51.000 not a round number?

    2) =MID(A1,2,3) if all your decimal values are 2 digits long

    =MID(A1,2,FIND(".",A1,2)-2) if they vary
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    11-18-2009
    Location
    los angeles, california
    MS-Off Ver
    Excel 2000
    Posts
    14

    Re: sorting decimals, then special format

    In my case, I use the 25' increment starting at 0. Therefore, anything that is not 0,25,50, or 75 will not be considered round and needs to be eliminated.
    How do I go about sorting those numbers out in my case?

    Anyway, my question 2 got resolved. Thank you so much.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: sorting decimals, then special format

    Not sure I follow but if the values in A are strings then

    B1: =MOD(REPLACE(A1,1,FIND("+",A1),""),25)=0
    copied down

    where above returns FALSE then "not round" per your spec.

  5. #5
    Registered User
    Join Date
    11-18-2009
    Location
    los angeles, california
    MS-Off Ver
    Excel 2000
    Posts
    14

    Thumbs up Re: sorting decimals, then special format

    Got it. You guys are the best.
    Thank you so very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1