+ Reply to Thread
Results 1 to 5 of 5

Data Sort From Copy Paste Data in Separate Column

  1. #1
    Registered User
    Join Date
    07-22-2012
    Location
    Chittagong
    MS-Off Ver
    Excel 2007
    Posts
    36

    Data Sort From Copy Paste Data in Separate Column

    Hello Experts

    I have some data which I need to sort in separate column by 'FORMULA'.

    In the attached file -
    In column A data is given; I want the account no. B and Account title in Column C

    Thanking Advance

    rif
    Attached Files Attached Files
    Last edited by rif; 12-29-2019 at 04:05 PM.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Data Sort From Copy Paste Data in Separate Column

    Cell B2 formula: =Left(A2,11)
    Cell C2 forumla: =MID(A2,13,LEN(A2)-13)

    Then copy down as far as needed
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Data Sort From Copy Paste Data in Separate Column

    Another option if the account numbers are not always 12 digits
    =LEFT(A2,FIND(" ",A2)-1)+0
    and
    =TRIM(SUBSTITUTE(A2,B2,""))

    Remove the +0 from the first formula if you want the account number as text

  4. #4
    Registered User
    Join Date
    07-22-2012
    Location
    Chittagong
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Data Sort From Copy Paste Data in Separate Column

    Thank you JLGWhiz.

    It's work great

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Data Sort From Copy Paste Data in Separate Column

    Quote Originally Posted by rif View Post
    Thank you JLGWhiz.

    It's work great
    You're welcome,
    Regards, JLG

+ 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. Capture particular Data and Paste into Sheet 3 PLUS Disect sort copy and move data.
    By Potholes in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 06-03-2019, 08:57 AM
  2. [SOLVED] vba code to sort data in two sheets and copy and paste sort data in output sheet
    By UPA in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2017, 05:13 AM
  3. Sort/copy Data into separate categorized tables
    By cgm990 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2015, 10:36 AM
  4. Macro to sort data by first column then paste data in template
    By msdelaney in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2015, 02:31 PM
  5. [SOLVED] Macro that can sort and copy groups of data into separate spreadsheets
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2014, 03:12 PM
  6. Copy and paste data between tables in separate workbooks.
    By catigo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2013, 04:41 PM
  7. Sort Data from one column to Separate Columns
    By Griff0 in forum Excel General
    Replies: 11
    Last Post: 06-06-2010, 08:43 PM

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