+ Reply to Thread
Results 1 to 2 of 2

Sort 1|3|5|7|9|11|13|15|17 to 1|11|3|13|5|15|7|17|9|

  1. #1
    Registered User
    Join Date
    04-05-2019
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    1

    Sort 1|3|5|7|9|11|13|15|17 to 1|11|3|13|5|15|7|17|9|

    So i have a dynamic spreadsheet providing the numbers 1.. a given value (in this case 17). 1,2,3,4,5,6,7,.....,17
    I have sorted the numbers into two rows providing either odd or even numbers.

    *My next step is to sort it like this: || = a cell

    Row 1: |1|3|5|7|9|11|13|15|17| ->|1|11|3|13|5|15|7|17|9|
    Row 2: |2|4|6|8|10|12|14|16| -> |2|12|4|14|6|16|8|10|

    As you can see the patters is every other value. My problem is that the limit of the input value strech from 12 to 102. And the sheet must still provide this pattern...

    Thanks

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Sort 1|3|5|7|9|11|13|15|17 to 1|11|3|13|5|15|7|17|9|

    It's unclear:

    a) how you're deriving the values
    b) where you want to sort the values (in-situ, or elsewhere)
    c) whether the values need to remain as numbers
    for ex. were you to store as text strings you would find you can sort per your requirement quite easily (using native sort), i.e. "11" > "1" and < "3")

    Perhaps post a sample file to illustrate what you're doing, exactly.

    Use GoAdvanced -> Manage Attachments
    {the paperclip icon does not work, unfortunately}

+ 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: 05-09-2017, 08:48 AM
  2. Replies: 1
    Last Post: 04-16-2015, 06:29 PM
  3. Replies: 1
    Last Post: 03-04-2015, 02:57 PM
  4. [SOLVED] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  5. Replies: 2
    Last Post: 01-15-2014, 09:31 AM
  6. Replies: 4
    Last Post: 11-20-2012, 06:00 PM
  7. [SOLVED] Pls. reply Sort Data and copy to next coulmn when sort order chang
    By shital shah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 10:05 AM

Tags for this Thread

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