+ Reply to Thread
Results 1 to 13 of 13

Excel: Data collation & conversion

  1. #1
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Excel: Data collation & conversion

    Dear Experts

    I' need your help for creating a Macro which will help me to avoid the human errors and efforts while collating the data from Horizontal to vertical, both merge un-merge cells as well as the values with "," comma.

    please find attached the sample file where I' have mentioned the RAW data as well as the required format. I' hope that the file is understandable.

    Let me know in case more details are needed.

    Thanks
    MG
    Attached Files Attached Files
    Last edited by gaikwad.mm@gmail.com; 08-05-2013 at 07:23 AM.

  2. #2
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: Excel: Data collation & conversion

    Dear Experts

    I' hope that someone is looking for the solution which can be provided to me..... both requirements can be done with 2 different macros and not required in single macro.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Excel: Data collation & conversion

    At least part of this can be done with a regular formula, no need for VBA.

    In C16, copied down, use this...
    =INDEX($A$3:$L$9,MATCH($A16,$L$3:$L$9,0),MATCH($B16,$A$3:$L$3,0))

    For the 2nd table (Master Data), why is the data in K merged like that? Also, why are there 2 rows for every "row" of data? Merging cells etc should be avoided if at all possible - it causes more problems than anything else

    Also, so that members can tailor their suggestions for you, please include your excel version in your profile (looks like 2007 or later)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: Excel: Data collation & conversion

    Thanks for reply FDBins

    The formula you have given for C16 is working properly..., But my target is to all the 3 columns and not just one for which you have shared the formula which is based on other 2 columns... it should not be like that... all 3 columns should be created by their own with shown data....

    For K Column... the raw data is like that only.. as it is coming with the drop down list with multi selection. and about the merge cell... there are 2 , 4 , and sometime 6 rows merged ...

    The format which I' have share cannot be changed... because there are many other things based on this format.. hence need your help to get the solution with the same format

    THANKS IN ADVANCE

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Excel: Data collation & conversion

    hi MG, option for Master Data, press "Master Data" button
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: Excel: Data collation & conversion

    Hey!!! Watersev

    This is fantastic..... Can you do the same for other 3 columns also exactly like shown in the required format... this will be really helpful

    Please take care that the merge cell can be 2.3. or other number... also the rows will be more than shown in sample file

    thanks
    MG

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Excel: Data collation & conversion

    please check attachment, press "Rupees and Master Data" button
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: Excel: Data collation & conversion

    Ohhhh.... Great.... It Working As Required....

    Question..

    My format's columns might get increase or decrease.. how can I' modify the code based on it...

    also are both macros included in single module ... or you are using both modules......


    Thanks
    MG

  9. #9
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Excel: Data collation & conversion

    the code being used is in Module 2 named "Rupees_and_Master_Data". The initial code for Master Data is not used.

    The code is done for the current format of the sample file. I don't know what changes might be necessary for any new format.

  10. #10
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: Excel: Data collation & conversion

    Ok...

    As of now this seems OK... And I' would like to thank you for all your effort to help me for getting the solution

    THANKS A LOT
    MG

  11. #11
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: Excel: Data collation & conversion

    Dear watersev

    I' have tried to apply your given macro in my original file... but due the number of columns are vary I' am not able to modify your code...

    could you please help me in updating your code as per the attached format....

    also request you to put some comments wherever modification are need to be done in case columns increased or moved to different location...


    PLEASE HELP ME WITH IT - THANKS IN ADVANCE

    MG
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: Excel: Data collation & conversion

    Hello... Still waiting for your reply... This will be re

  13. #13
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Excel: Data collation & conversion

    hi MG, please check attachment, run code "test"

    The code should work as expected and does not need any modifications provided:
    1. The data table starts from A1 and has at least 3 columns.
    2. Codes column is the last column, Product column comes before the last column.

    You can test it deleting and adding the columns provided the above set conditions are met.
    Attached Files Attached Files

+ 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. [SOLVED] Period Data Collation
    By BullseyeThor in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2012, 07:46 AM
  2. Data Form Collation?
    By ASH2707 in forum Excel General
    Replies: 4
    Last Post: 04-14-2010, 11:51 AM
  3. VBA script for collation of data
    By Sushesh in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 11-10-2008, 11:01 AM
  4. Data Collation
    By Andrew-Mark in forum Excel General
    Replies: 7
    Last Post: 08-14-2008, 02:48 AM
  5. Data collation killing me!!
    By rhani111 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 08-09-2006, 09:13 PM

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