+ Reply to Thread
Results 1 to 4 of 4

copy rows on cell based value and condtionaly paste it to other column

  1. #1
    Registered User
    Join Date
    03-23-2005
    Posts
    33

    Red face copy rows on cell based value and condtionaly paste it to other column

    Hi
    this is very dynamic requirement.
    I have attached image as well sample sheet for what i need.

    In brief:
    I want to transfer(cut or moving) the cells to respective column but on same row from where is has been cut.

    For example: (where , (comma) means different column

    Account No.1
    item33,quantity,amount,
    item2,quantity,amount,
    item48,quantity,amount,

    Account No.2
    item9,quantity,amount,

    Account No.3
    item19,quantity,amount,
    item2,quantity,amount,
    item6,quantity,amount,
    item75,quantity,amount,
    item52,quantity,amount,

    Now i want put it like this

    Account No.1 item33,quantity,amount,
    Account No.1 item2,quantity,amount,
    Account No.1 item48,quantity,amount,

    Account No.2 item9,quantity,amount,

    Account No.3 item19,quantity,amount,
    Account No.3 item2,quantity,amount,
    Account No.3 item6,quantity,amount,
    Account No.3 item75,quantity,amount,
    Account No.3 item52,quantity,amount,

    I have also attached image and sample excel file.
    [img=http://s4.postimage.org/3208mebvo/data_convert.jpg]
    Excel file is attached below.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: copy rows on cell based value and condtionaly paste it to other column

    Hi,

    Give this a whirl, your data format goes a bit funny halfway down so I wasn't sure what you wanted to display - I assumed that this hadn't been entered correctly.

    To run this make sure there is nothing to the right of your data

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-23-2005
    Posts
    33

    Re: copy rows on cell based value and condtionaly paste it to other column

    Thanks a lot Kyle123
    this is what i exactly wanted

    Data format which you are talking about its actually there.
    This data is auto generated from some other software. i dont have control over it. It comes every time.
    Is there anyway way to delete those rows?
    For example, required rows in Column A - always have either xxxxx-x formatted Account# or date or word begins with "Total :" anything other then this- those rows are not useful and we can delete it before moving the data.
    So how abt some new addition code which first delete the the rows which has value other then xxxxx-x formatted account# or date or word "Total :" and then run code which u gave for moving and arranging data.
    [Account# could be xxxxx-x or xxxx-x or xxx-x or xx-x or x-x] means 5digit-1digit or 4digit-1digit or 3digit-1digit or 2digit-1digit or 1digit-1digit
    Thanx a lot
    i really appreciate your help
    Last edited by sanketgroup; 09-29-2011 at 12:54 PM.

  4. #4
    Registered User
    Join Date
    03-23-2005
    Posts
    33

    Red face Re: copy rows on cell based value and condtionaly paste it to other column

    any update please?

    thanx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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