+ Reply to Thread
Results 1 to 4 of 4

Rank string ignoring blank cells and o value cells

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Rank string ignoring blank cells and o value cells

    Using formula, how can rank the following in a column which can have blanks and 0s? "A" ranks higher than "C", and 002 ranks higher than 123.

    A.6.0.00023
    A.5.0.00024
    COM123 .1.0.00025
    COM123 .2.0.00026
    COM123 .1.0.00027
    COM002 .1.0.00028
    COM003 .2.0.00029
    COM003 .1.0.0003
    COM003 .2.0.00031
    COM003 .2.0.00032
    COM123 .2.0.00033
    COM003 .2.0.00034
    A.2.0.00035
    COM003 .1.0.00036
    COM123 .1.0.00037

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Rank string ignoring blank cells and o value cells

    Hi Bob,

    This is probably NOT what you want, but I would hate to think how big and confusing a formula would have to be for you to achieve what you want. Even a UDF would be quite complex.

    I did however, use Text to Columns (in two steps) to break up the codes, and then a fairly convoluted sort to achieve what I think you want.

    See attached.

    Is this of any assistance?

    David


    When you reply please make it clear WHO you are responding to by mentioning their name.

    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Rank string ignoring blank cells and o value cells

    Hi David

    Thanks for your assistance. It's not what I was after (because it would have to be manual intervention) but I suspect you are 100% right.

    kind regards

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Rank string ignoring blank cells and o value cells

    Hi,

    How about this. I thought I posted this yesterday, but apparently I forgot lol.

    I hope this helps

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 01-24-2013, 06:29 AM
  2. Ignoring blank cells
    By reaney10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2012, 02:49 PM
  3. Replies: 0
    Last Post: 01-04-2012, 04:30 AM
  4. Ignoring cells with zero value or blank
    By Moshsoft in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2009, 04:13 AM

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