+ Reply to Thread
Results 1 to 4 of 4

Currency Range Sorting Problem

  1. #1
    Registered User
    Join Date
    08-22-2016
    Location
    NJ
    MS-Off Ver
    2010
    Posts
    4

    Currency Range Sorting Problem

    Hello,
    I have a column titled "RANGE". The ranges of money are $0-$999, $1,000-$4,999, $5,000-$9,999, $10,000-$14,999, $15,000-$19,999, and $20,000+
    However when Excel lists these it has the $5,000-$9,999 range listed last. How can I get that range to its proper spot?
    Thank you

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: Currency Range Sorting Problem

    It's being sorted as text, not currency. You'd need to put in leading zeroes to align the digits. Or split lower and upper values into separate columns. Then sort on the lower column.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-22-2016
    Location
    NJ
    MS-Off Ver
    2010
    Posts
    4

    Re: Currency Range Sorting Problem

    Thank you for your response. So there is no way that i can get that range in its proper spot? There is no way for excel to detect it as currency?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: Currency Range Sorting Problem

    It's not currency. Currency is simply a numeric value with a format applied.

    You have a text string that contains a couple of dollar signs, a hyphen, some commas, and some numbers ... two sets of numbers. However, the combination means it is a text string and that's the way it gets sorted.

    If you need it for user presentation, you would be better splitting the values to allow you to deal with them as numbers and then using concatenation to combine them.

    Note that, as it stands, the numbers are useless other than for visual presentation. Not only can you not sort them, you can't do any numeric calculations or comparison. You can't say, is this number in that range?

+ 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. Problem with currency
    By Tefa Tato in forum Excel General
    Replies: 3
    Last Post: 04-21-2016, 08:29 AM
  2. [SOLVED] Sorting a range into a single column problem
    By 54ed in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2014, 11:50 AM
  3. Problem with Named Range Sorting
    By stubbsj in forum Excel General
    Replies: 4
    Last Post: 11-08-2013, 07:18 PM
  4. Currency Formatting-range of number as currency
    By kmurray24 in forum Excel General
    Replies: 1
    Last Post: 01-09-2008, 09:09 AM
  5. Sorting Currency and Numeric Values..
    By deftones in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2006, 08:42 AM
  6. currency Problem
    By irresistible007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2006, 04:10 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