+ Reply to Thread
Results 1 to 7 of 7

Splitting data location wise from 3 sheets in 1 workbook

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    MS-OFFICE 2010
    Posts
    15

    Splitting data location wise from 3 sheets in 1 workbook

    hi frds...

    I have some queries in vba and m unable to find out the way...

    I will try to explain as much as possible...pls check and give me solutions..

    I have an excel workbook which contains raw data in 3 different sheets i.e. Sheet1, Sheet2 & Sheet3.

    I want to split the data location wise from Sheet1, Sheet2 & Sheet3 in one workbook and that workbook will have all of that data from 3 sheets like Sheet1,Sheet2 & Sheet3.

    I would like to split the data from Sheet1 in new workbook for a particular location (will name as "CHD") (Will name the sheet1 as "X"). Again I want to split data from Sheet2 for the same location (Will name the sheet2 as "Y") and the same activity should be done for Sheet3 (Sheet3 name as "Z"). All of the output from the 3 sheets should be saved in one workbook and eventually for all other locations.

    Pls note *If any sheet doesn't contains any data for that particular location, lets say CHD location, contains data in Sheet1 & Sheet3 so in output file Sheets remains the same i.e. X , Y , Z (Even if the data is blank)

    I am able to split the data from sheet1 in multiple workbooks for different locations but not able patch all those 3 sheets data for one particular location in a new workbook.

    I have attached the raw data file...

    Code which I am using to split the data:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Kalpesh93; 05-25-2015 at 05:08 AM.

  2. #2
    Registered User
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    MS-OFFICE 2010
    Posts
    15

    Re: Splitting data location wise from 3 sheets in 1 workbook

    Can any1 pls help me to out from this....
    Pls help

  3. #3
    Registered User
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    MS-OFFICE 2010
    Posts
    15

    Re: Splitting data location wise from 3 sheets in 1 workbook

    Very disappointing,,, i thought i will get some help here....

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Splitting data location wise from 3 sheets in 1 workbook

    Hi Kalpesh93

    I'm looking at it...don't give up the Ghost just yet...not as simple as it appears to be.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Splitting data location wise from 3 sheets in 1 workbook

    Hi Kalpesh93

    This Code is in the attached and appears to do as you require. Place the two Workbooks in the SAME Folder...matters not where. Open the Macro Book; you'll be prompted to select a raw data File (TEST_SAMPLE.xlsx). The Code creates (or empties) the Folder Locations where you'll find all the newly created Location Files.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    MS-OFFICE 2010
    Posts
    15

    Re: Splitting data location wise from 3 sheets in 1 workbook

    @jaslake ...Thanks it works....thank you so much.....

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Splitting data location wise from 3 sheets in 1 workbook

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. Location Wise Inventory Report from Master Data of Inward & Outward
    By pakhare.kiran in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 04:18 PM
  2. [SOLVED] Combine data from Header Month-wise based on Location
    By Linraen7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-28-2012, 05:47 AM
  3. [SOLVED] I want change the data row wise to coloum wise & coloumn wise to row wise.
    By satputenandkumar0 in forum Excel General
    Replies: 3
    Last Post: 12-20-2012, 08:34 AM
  4. Split data headding wise in to different sheets
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2012, 06:56 PM
  5. Splitting a workbook's sheets into seperate files
    By Turnipboy in forum Excel General
    Replies: 4
    Last Post: 10-20-2005, 10:05 AM

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