+ Reply to Thread
Results 1 to 6 of 6

Merging data from several sheets

  1. #1
    Registered User
    Join Date
    07-21-2017
    Location
    London, England
    MS-Off Ver
    xp
    Posts
    3

    Merging data from several sheets

    Hi,

    I have a series of sheets all of which contain data arranged under a series of different headers. I have then created a master sheet which contains all of the headers i have used. Can the "IF" function be used in the master sheet to say if sheet 1, sheet 2 and sheet 3 has data arranged under the heading "organisation" put all of those organisations in the master sheet under the header of that name? I have about 40 different headers across 12 sheets.
    Last edited by excelthicky; 07-21-2017 at 01:21 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merging data from several sheets

    It can be done rather handily with VBA - what are the specifics i.e. sheet names, headers etc?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    07-21-2017
    Location
    London, England
    MS-Off Ver
    xp
    Posts
    3

    Re: Merging data from several sheets

    Well there are 12 sheets (numbered one to 12) and then about forty headers;

    Organisation
    Fortune 500
    Industry
    Industry2
    Salutation
    First Name
    Last Name
    Job Title
    Email
    Tel No
    Mobile No
    Address 1
    Address 2
    Address 3
    Address 4
    Town
    Postcode
    County
    Country
    Immediate parent
    Ultimate parent
    Company total spend
    Company radio spend
    Company TV spend
    Company outdoor spend
    Company press spend
    Company direct mail spend
    Company cinema spend
    Company internet spend
    Contact status
    Address 2
    Town1
    County1
    Postcode1
    Country1
    Database Spend
    Monitoriong Spend
    DMAS
    G Account Owner
    G Account level
    Analysis Spend
    Approximate start date

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merging data from several sheets

    Well, without a sample it's untested but to run it put whatever headers you want in a Sheet named "Master"
    and have the source sheets actually named 1 to 12:

    Please Login or Register  to view this content.

    And, Thanks for the rep!
    Last edited by xladept; 07-21-2017 at 02:37 PM. Reason: index

  5. #5
    Registered User
    Join Date
    07-21-2017
    Location
    London, England
    MS-Off Ver
    xp
    Posts
    3

    Re: Merging data from several sheets

    Thanks so much for your help. Do the sheets need to be numbered "1, 2, 3 etc" or "sheet1, sheet2, sheet3 etc". I've tried running the code with the sheets named sheet1 etc but am getting the following error;

    Compile error, Type Mismatch and then it highlights "Sub ExcelThicky ()"

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merging data from several sheets

    The sheet names are just integers like it was on your sample

+ 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. Replies: 2
    Last Post: 04-23-2017, 12:04 AM
  2. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  3. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  4. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  5. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 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