+ Reply to Thread
Results 1 to 7 of 7

Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

    "SIMPLE MACRO

    NEED HELP ON THIS
    I HAVE ENCLOSED QUESTION EXCEL SHEET INPUT AND OUT PUT

    I HAVE MULTIPLE UNIQUE VALUES IN A:A COLUMN IN TWO SHEET FROM INPUT SHEET I WANT SPLIT VALUES
    FIRST SHEET NAME IS CCI
    SECOND SHEET NAME IS ON SITE
    IF A COLUMN HAVE VALUE Aegis Infoware Pvt. Ltd IN CCI :SHEET1
    IF A COLUMN HAVE VALUE Aegis Infoware Pvt. Ltd IN ONSITE :SHEET2


    MAKE OUPUT SHEET NAME AS AEGIS INFOWARE PVT THEN SHEET1 NAME IS CCI CONTAINS DATA ONLY ALL RANGE OF Aegis Infoware Pvt. Ltd SHEET1
    IN SHEET 2 NAME IS ONSITE CONTAINS DATA ONLY ALL RANGE OF Aegis Infoware Pvt. Ltd FROM SHEET2

    LIKE THAT MACRO SPLIT ALL UNIQUE VALUE
    MAKE WORK BOOK NAME AS BELOW MENTIONED

    Comnet Vision (INDIA) Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Symmetrix Computer Systems Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Coreiq Solution Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    JMS technologies -SHEET - 1 CCI-SHEET- 2 ONSITE
    Digital System & Solutions -SHEET - 1 CCI-SHEET- 2 ONSITE
    Digitech -SHEET - 1 CCI-SHEET- 2 ONSITE
    Sheikh Enterprises -SHEET - 1 CCI-SHEET- 2 ONSITE
    Upper Ganges Systems -SHEET - 1 CCI-SHEET- 2 ONSITE
    Gloria Services -SHEET - 1 CCI-SHEET- 2 ONSITE
    Perfect Systems -SHEET - 1 CCI-SHEET- 2 ONSITE
    Computer Connection -SHEET - 1 CCI-SHEET- 2 ONSITE
    NEXUS COMPUTERS -SHEET - 1 CCI-SHEET- 2 ONSITE
    Sona Infotech Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Perfect Computer Network -SHEET - 1 CCI-SHEET- 2 ONSITE
    Renaissance -SHEET - 1 CCI-SHEET- 2 ONSITE
    Libra Technocorp -SHEET - 1 CCI-SHEET- 2 ONSITE
    Emall(ecs) -SHEET - 1 CCI-SHEET- 2 ONSITE
    Digitalcare Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Caddons Computer Services Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    TOUCHAUTOMATIONPVTLIMITED -SHEET - 1 CCI-SHEET- 2 ONSITE
    M.J.Enterprises -SHEET - 1 CCI-SHEET- 2 ONSITE
    Reliable Network Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Qbic Solutions -SHEET - 1 CCI-SHEET- 2 ONSITE
    Aegis Infoware Pvt. Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Crystal Computer -SHEET - 1 CCI-SHEET- 2 ONSITE
    Aim Enterprises -SHEET - 1 CCI-SHEET- 2 ONSITE
    Creative Computers -SHEET - 1 CCI-SHEET- 2 ONSITE
    Webx Technologies -SHEET - 1 CCI-SHEET- 2 ONSITE
    Monarch Technologies -SHEET - 1 CCI-SHEET- 2 ONSITE
    Supreme Systems -SHEET - 1 CCI-SHEET- 2 ONSITE
    E-line -SHEET - 1 CCI-SHEET- 2 ONSITE
    Service Point -SHEET - 1 CCI-SHEET- 2 ONSITE
    Blue Bell -SHEET - 1 CCI-SHEET- 2 ONSITE
    Global It Net -SHEET - 1 CCI-SHEET- 2 ONSITE
    Bluecom InfoTech Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Reliance Info Solutions -SHEET - 1 CCI-SHEET- 2 ONSITE
    Super Computers -SHEET - 1 CCI-SHEET- 2 ONSITE
    Cell World -SHEET - 1 CCI-SHEET- 2 ONSITE
    Aprompt -SHEET - 1 CCI-SHEET- 2 ONSITE
    Satyam -SHEET - 1 CCI-SHEET- 2 ONSITE
    Maharaja Communications -SHEET - 1 CCI-SHEET- 2 ONSITE
    Cyber Systems -SHEET - 1 CCI-SHEET- 2 ONSITE
    Computer World -SHEET - 1 CCI-SHEET- 2 ONSITE
    DGT Systems Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Ultra Integrated Technology Services Pvt Ltd. -SHEET - 1 CCI-SHEET- 2 ONSITE
    Binary Systems -SHEET - 1 CCI-SHEET- 2 ONSITE
    Baba Computers -SHEET - 1 CCI-SHEET- 2 ONSITE
    Thakur Turnkey Services Pvt Ltd -SHEET - 1 CCI-SHEET- 2 ONSITE
    Nestore Informatics -SHEET - 1 CCI-SHEET- 2 ONSITE
    Baundia Infotech -SHEET - 1 CCI-SHEET- 2 ONSITE
    Dynamic Systems -SHEET - 1 CCI-SHEET- 2 ONSITE
    Dev Mohini Printers & Suppliers -SHEET - 1 CCI-SHEET- 2 ONSITE
    Netcom Computers -SHEET - 1 CCI-SHEET- 2 ONSITE
    Computer Gallary -SHEET - 1 CCI-SHEET- 2 ONSITE"
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

    Dude
    Its Running Only for First Sheet NOt to Second Sheet I want Split Data From Sheet CCI & ONSITE as result New Work with Two Sheet CCI & ONsite....
    PLease Help

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

    I wonder if this is the same person!

    http://www.excelforum.com/excel-prog...29#post3246229

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

    Thanks AB33.

    Excelhooker,

    What is your purpose behind creating different user ids and posting the same question? I have merged both the user ids now.

    I ran the code at my end and it works. Are you running it on the sample data you uploaded?
    Last edited by arlu1201; 05-21-2013 at 04:26 AM.

  6. #6
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

    I hope You could understand Output File request. Simple I have two sheet in INput File CCI & ONSITE then I want split Unique value from CCI & ONSITE both sheet Column A:A and Output file with Name of UNique values with two sheet CCI & ONSITE
    WHAT EVER SPLIT VALUES IN CCI INPUT TO NEW WORKBOOK NAME AS SPLITED UNIUE VALUE WITH CCI-(SHEET1) & ONSITE -(SHEET2)

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel macro split data from a:a colu from sheet 1,2 into one wb with two sheet

    So if i understand you clearly, you need 1 workbook per unique value, where CCI data is in sheet1 and ONSITE data is in sheet2 right?

    I ran the macro i created for you and it does the same. Are you getting any error?

+ 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