Results 1 to 8 of 8

Thread: Best way to sort

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Regular
    Joined
    Jan 2020
    Posts
    7
    Location
    Quote Originally Posted by arnelgp View Post
    just create two more columns and split your W6x15 description. one column would contain 6 and the other 15.
    then sort on to this two columns.

    to convert to numbers, respectively:

    first colum:
    =VALUE(LEFT(SUBSTITUTE(A2,"W",""),FIND("x",SUBSTITUTE(A2,"W",""))-1))
    second column:
    =VALUE(MID(A2,FIND("x",A2)+1,99))
    I failed to mention that I need to do this programmatically due to the program environment I'm in. I am not using Excel. I'm using VBA within another program. I couldn't find a strictly VBA sub forum to put this question in.
    Last edited by Aussiebear; 12-31-2024 at 03:43 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •