+ Reply to Thread
Results 1 to 5 of 5

Larger sizes against smaller sizes

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    2

    Larger sizes against smaller sizes

    How do i get Excel to recognize that 20ltrs is bigger than 4ltrs when i sort it? i have tried using number format but it still doesn't work.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Larger sizes against smaller sizes

    Hi and welcome to the forum

    It sorts them "funky" because they are not values, they are text. If you really have to have the unit of measure added (it would be simple if you didnt), you could probably add a helper column to extract the value =left(a1,len(a1)-3)*1...assuming the unit of measure will always be 3 letters???), and then base the sort on that column?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Larger sizes against smaller sizes

    Or split the data into two cells.

    Mark the column with your volumes. Use Find and replace "l" with " l" (blank+l)
    Insert an empty column at right of the volumes.
    Mark the column with your volumes. Choose "Text to columns" and mark "Blank" as delimiter

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Larger sizes against smaller sizes

    If ltrs is all youve got, format all cells as

    #"ltrs"

    Then you need to input only the number and can sort the data
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    08-13-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Larger sizes against smaller sizes

    hey guys, thanks for the answers but im still confused, please see attachment and hopefully you get a better understanding of my predicament. I want to first sort by PRODUCT alphabetically the by SIZE smallest to largest.
    Attached Files Attached Files

+ 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. table sizes
    By itlog in forum Excel General
    Replies: 1
    Last Post: 04-03-2012, 12:15 PM
  2. VBA to delete row if value in cell is larger or smaller than a specified value
    By judasdac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2009, 02:54 PM
  3. different Fonts and different sizes
    By sagar in forum Excel General
    Replies: 2
    Last Post: 12-02-2008, 10:30 AM
  4. Making Tab Sizes smaller or creating multiple rows of tabs.
    By kingbiscuit in forum Excel General
    Replies: 4
    Last Post: 03-05-2008, 04:44 PM
  5. Smaller Font Sizes ?
    By YorkBeach in forum Excel General
    Replies: 1
    Last Post: 12-14-2005, 06:40 PM

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