+ Reply to Thread
Results 1 to 6 of 6

Thread: Ordering 3-digit numbers

  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    new york, usa
    MS-Off Ver
    Excel 2003
    Posts
    37

    Ordering 3-digit numbers

    I have a list of 3-digit numbers in column A and would like to order them in another column say B as follows.

    e.g
    122 nXX
    212 XnX
    221 XXn

    Where n is the non-double digit.
    Last edited by Sweetypie; 04-02-2010 at 02:24 PM.

  2. #2
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    5,953

    Re: Ordering 3-digit numbers

    You may want to provide a few more examples than this, preferably in a spreadsheet. Show the list before, and the list after, and explain why the results are sorted the way they are.

  3. #3
    Registered User
    Join Date
    03-01-2010
    Location
    new york, usa
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Ordering 3-digit numbers

    i am just trying to order/format numbers according to the following rule:
    i have a list of numbers all in 3_digits but 2 digits are the same. i want separate column that identifies each number as nXX, XnX, or XXn.

    where n and X are numbers fro the set 0,1,2,3,4,5,6,7,8,9
    Attached Files Attached Files
    Last edited by Sweetypie; 04-02-2010 at 01:45 PM.

  4. #4
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,523

    Re: Ordering 3-digit numbers

    As Paul hinted: upload a sample spreadsheet that meets this criteria:

    1. It exactly duplicates the structure of your real workbook AND,
    2. It contain representative but non-sensitive dummy data, AND
    3. It manually illustrates the desired outcome using a several clear examples


    To upload a sample workbook:
    1. Edit your previous post, click Go Advanced
    2. Scroll down the page until you see the button "Manage Attachments"
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,170

    Re: Ordering 3-digit numbers

    Didn't really look at the spreadsheet, but from your example if A1 has the number, B1 can be =IF(Left(A1)=Right(A1),"XnX",IF(Left(A1)=Mid(A1,2,1),"XXn","nXX"))

  6. #6
    Registered User
    Join Date
    03-01-2010
    Location
    new york, usa
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Ordering 3-digit numbers

    Darkyam, thanks. you are awesome. Once again you came thru.

+ 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.2.0