Results 1 to 8 of 8

Arrange numbers in the row according to cells with value only

Threaded View

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    Ukraine
    MS-Off Ver
    Excel 2013
    Posts
    25

    Arrange numbers in the row according to cells with value only

    Hi, there!!
    I have the macro which takes the values from the table and write them into given cells in the row:

    Sub SortingGupta()
    '
    ' SortingGupta Macro
    ' Sorting jobs according to given K
    
    Dim i As Integer, k As Integer
    
     i = 0
     For k = 0 To 29
     Worksheets("Gupta").Cells(45, Chr(66 + i)) = Worksheets("Gupta").Cells(15 + k, "C")
     i = i + 2
     k = k + 2
     Next k
    
    End Sub
    Row looks like this:

    1.JPG

    My goal now is rearrange the numbers in the same row from min to max. I've tried to use excel build in "Sort" function but it's destroy the row after values sorting:

    2.JPG

    I need to keep the order (value-arrow, value-arrow...)
    it is possible to make it work somehow using vba (add the code into existing macro)?
    Thank you in advance,
    Igor
    Last edited by igor7; 05-06-2014 at 09:28 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 03-29-2014, 10:04 AM
  2. macro to arrange rows in numerical order using numbers in column
    By blairw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2013, 10:58 PM
  3. [SOLVED] Arrange numbers in a sequence
    By Joe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2006, 12:50 AM
  4. Replies: 2
    Last Post: 08-15-2005, 11:05 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