How do you sort numbers in the same field in excel 2010 the same for access 2010

Hi,
Is there a way to sort data horizontally in the same field in excel and for access, or is there an addin that can do this
or  function code
field data    6-4-25-23-11-45
sort order 4-6-11-23-25-45
Regards,
Rudolf
rudolfelizabeth

sort data horizontally in the same field in excel
Does "in the same field" means that the string "6-4-25-23-11-45" is located in one cell?
In that case you have to use an UDF. Paste this code into a regular module:
Function SortNumbersPrim(ByVal What As String, Optional ByVal Delimiter) As Variant
  Dim Arr, Temp
  Dim i As Long, j As Long
  Arr = Split(What, Delimiter)
  For i = LBound(Arr) + 1 To UBound(Arr)
    Temp = Val(Arr(i))
    For j = i - 1 To LBound(Arr) Step -1
      If Val(Arr(j)) <= Temp Then Exit For
      Arr(j + 1) = Arr(j)
    Next
    Arr(j + 1) = Temp
  Next
  SortNumbersPrim = Join(Arr, Delimiter)
End Function
Then use a formula like this:
=SortNumbersPrim(A1,"-")
Andreas.

Similar Messages

  • Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Contact Apple and see if they can provide any documentation of the device swap.

  • How do you sort the safari  "Bookmarks Bar" bookmarks

    how do you sort the safari  "Bookmarks Bar" bookmarks

    Here is the workaround for sorting your bookmarks - you don't have to do it manually as suggested in the previous answer here. This is from a 2006 page at Hints.Macworld.com
    "One thing that bugs me is that there is no option in Safari to alphabetize bookmarks. I had a crazy idea about how to accomplish this, and it seems to work. Hopefully I'm not missing something more obvious.
    What I did was open the Bookmarks window (Bookmarks: Show All Bookmarks), put the links I wanted to alphabetize into a folder, and then dragged that folder into the Finder. The Finder alphabetizes the bookmarks; you can then just drag the folder back into the Bookmarks window. You probably have to set the Finder to arrange files by name before it will work. Hope this helps!
    [robg adds: When you drag the folder back, you'll now have two folders, the original and the sorted one. Just delete the original, and you're set. You can also do this without first creating a Safari folder. Just select all the bookmarks to be alphabetized, drag them into a new folder in the Finder, open that folder (make sure it's set to sort by name or use column view), then drag the now-sorted bookmarks back into Safari's Bookmarks window. Again, you'll have duplicates, so just delete the originals (which will be grouped above the newly-placed list). I wonder if any of this is scriptable...]"
    If you're like me and you like to keep all of your bookmarks in folders in the Bookmarks bar, then from the Bookmarks window you would open the Bookmarks Bar in a window of its own before doing the above.

  • How do you create aligned interactive text boxs in a PDF with the same width and height?

    how do you create aligned interactive text boxs in a PDF with the same width and height?
    Without free hand creating the sizing?

    Assuming by "interactive text boxes" you mean form fields; in Acrobat, make a form field, then copy it and paste. (GIve the pasted copy a different name so they don't genetate the same field feedback.) Now you have two fields of the exact same size. Shift-click or marquee-drag to select both, then right-click and choose a command from the Align, Distribute or Center menu.

  • How do you get FaceTime to work between two Mac's with the same email address? Thanks, Mike

    How do you get FaceTime to work between two Mac's with the same email address?

    I would like to know the same thing.  How does facetime work between a MacBook Pro and an I Pad that run off the same email address/mac id

  • How do you change categories in both transactions and budget report in the personal budget template in Numbers?

    How do you change categories in both transactions and budget report in the personal budget template in Numbers?
    I am working on both an iPad mini and a MacBook Air. 
    Whenever I change the category name in the budget report, it does not actually show up in the transactions tab when I am using the Personal Budget Template. 
    I have already tried copying and pasting a category in the budget report to add another row but it still does not show up in the transactions tab. 

    Hi golmeda,
    Check out this answer here:
    Using Numbers Personal Budget template I can't figure out how to change the categories in both tabs (budget and transact…
    If it is unclear let me know.
    quinn

  • How can I sort albums in a genre by release date in the itunes store

    How can I sort albums in a genre by release date in the itunes store

    Did you figure this out? Am having the same problem.
    EDIT:
    Found the group in store (in this case Juana Molina) It said music -> alternative
    Changed to column view, and could not find the artist at all in any of the sub categories.
    iTunes is really the biggest pain in the .... and has gotten worse over the years.

  • How do you sort video in itunes

    in itunes you have the video section then you have 4 subsections Movies,Music Videos, Podcasts, and Tv Shows.
    How do you sort the different video in itunes from all vidoes to those subsections

    ben7072 - I just found this on the discussions board: "Under View Options in the View menu, check the box that says Artist. Then rearrange your shows by Artist instead of Show."
    It does work. Obviously, the Artist needs to be the same a Show for it to truly fix our problem here... this is the case for me.
    I'd still like to know what the real problem is though...
    iMac G5   Mac OS X (10.4.9)  

  • How do you sort specific columns and freeze a header column?

    I'm creating a list of people attending a workshop and would like the first column to be the number of people attending. The first column is the number and that row sorts with the rest, so then my numbers go 1, 9, 5, etc instead of remaining 1-20. Is there a different way for me to determing the number? I put 1 in cell A 2 and then for A 3 I give it a formula A1 + 1 to create the number sequence. I've tried making it a header column and freezing the column, but it still changes.
    thanks,
    Nancy

    Nancy,
    You can search the discussions when you have a specific question, or you can just browse them from time to time to see what there is to be learned. Your question is a little like "How did you learn to be a good cook?" Most of the good home cooks never went to cooking school, but they have had lots of good coaching and lots of experience. Many of the helpers here have been using spreadsheets for so long that they don't remember when they learned a particular trick or method. And, we like to share, so keep the questions coming.
    I keep the Formula Browser in view, and I study the examples for the functions I think I might want to use.
    Regards,
    Jerry

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    Newer version does not have the same interface.  I'm stuck trying to understand how to add a "blank" target to a hyperlink...  See how your screenshot has a dropdown associated with the "Hyperlink" object?  Mine doesn't...

  • How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    Events are organisation for those who can't really be bothered. They are automatic - based entirely on Date and Time the camera records the photos as taken.
    You can move photos between Events, you can Merge Events, you can Rename them and sort them in various ways except one: You cannot manually sort in an Event as Events are all automated.
    If you want to manually sort in an Event then you've outgrown Events as an organising tool. Now it's time to look at albums (Where you can manually sort) which are much more flexible than Events as an organising tool.

  • How do you sort iBooks library by author's  last name

    How can you sort the iBooks library by author's last name. Currently the sort by author uses first name.

    Anyone have a solution to this yet?
    In MUSIC, clicking on columns to add ALBUM name only adds ALBUM by ARTIST which does not give a way to see and sort for the entire LIBRARY.
    Seems to be a lost ffeature in the new 9.0 version.

  • How do you sort photos by face/name on iPad2?

    How do you sort photos by face/name on iPad2?

    iPhoto is designed to work with photos from cameras, and so seeks the date in the Exif metadata that the camera writes to the file.
    There is no way to organise photos by the date they were imported to iPhoto.
    Regards
    TD

  • How do you sort safari bookmarks

    How do you sort bookmarks in safari? Why does apple not allow you to do this?

    Hi,
    You can manage your Bookmarks anyway you like.
    Start here.  http://www.cultofmac.com/how-to-manage-safari-bookmarks-efficiently-macrx/35616
    If you want to alphabetize a Bookmark folder just move it to your Desktop. The Finder will automatically alphabetize the list of Bookmarks for you then just drag it back to the Safari window.
    Carolyn 

  • How do you sort Pics in Smart Folder? Photos App

    How do you sort pics in a smart folder in the Photos App? Date, Name, etc.

    Yes, when I do that it sorts the albums in the folder by name.
    I may have misused terminology, I meant Smart Albums not smart folders, if this makes a difference.
    Thanks for your help!

Maybe you are looking for

  • T code for creating BP in CRM

    Can anybody help me with the transactions codes required to create BP and contract account, etc. using CRM. It will be replicated in IS-U. Thanks in advance.

  • Aperture 3.4 can't update library

    I updated Aperture on my iMac and on my MacBook Pro (Both 10.8.2) to 3.4.  After the update Aperture opens and says it needs to update my Library.  While performing the lib update the process stops with the message:  WARNING: There was an error openi

  • Is there a way to have iPhoto find, and delete, my duplicates?

    I thought there was a way to do this, but now I can't find it. Thanks, Paul

  • F4 on LIFNR fails to capture the values in SELECT statement

    Hi all, In the last 3 days Ive faced two issues on F4 Helps and its freaking me out. The first issue I chose to ignore because of time-constraints and able to find a work-around. On the second issue Ive hit a brick-wall. Anyways here are my two issue

  • Give me an album button!

    Hi there, I don't know if anyone from Apple actually reads these posts but I have a request: Can you add a button called "Album" to iTunes. When playing in random mode it would be really nice if I could simply click on the "Album" button and iTunes w