+ Reply to Thread
Results 1 to 3 of 3

copying column headers from multiple sheets into a "summary" sheet, based on criteria

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    Christchurch, New Zealand
    MS-Off Ver
    2010
    Posts
    2

    copying column headers from multiple sheets into a "summary" sheet, based on criteria

    In my head this seems like it should be straight forward. A breakdown of what I have (with attached spreadsheet):

    I have 8 sheets all with the first 2 columns containing the same information.

    Within each of these sheets there are columns with unique IDs (series of letters followed by a number which corresponds to the sheet that ID can be found on, see below)

    screengrab1.jpg

    What I'm looking for is a formula/array formula? that will search through row 2 of all 8 sheets, and create a new table in "summary sheet 1" where the column headers are those where the area ID's contain a "1" e.g. M1, LLL1 etc (with the idea that I'd then create 3 other sheets for ID's containing a 2, 3 and 4). and to also copy across the associated information from row 3

    Once this has been achieved I then need a way for all the numbers in the respective columns to also be copied across into the summary sheet i.e. 30,119 and 149 etc.

    One extra snag. I need the summary sheet to also update in the event that additional area ID's are added to one of the sheets. e.g. if in the attached screen grab I add an area ID labelled NNN1 in Column BB, I need the formula to add the info from NNN1 to "Summary Sheet 1"

    The general outcome I'm looking for is 4 summary sheets with all of the Area IDs with the same number in each sheet. Column A and B will also be copied across into each of the Summary sheets so that I can sum the total number of each plant type as well as the final total for the number of plants in that sheet.

    I hope all of this makes sense and that there's someone out there in the world who knows what I'm after and can help!

    any help would be massively appreciated (I'm doing this for the Mrs, I'm semi proficient with excel but even this has got me stumped!)

    Cheers,

    Dan

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: copying column headers from multiple sheets into a "summary" sheet, based on criteria

    Hello and welcome to the forum.

    You are making the same mistake that I see time and time again. You are mixing up the two elements of data capture and final reporting. The two require quite different treatments.

    A lot of people start by designing the form that they expect to see as the final report or which at first glance seems the best way of capturing data, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it. Yours exhibits all those features.


    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round.
    You will also throw open the whole wonderful world of the powerful Pivot table functionality.

    So before you get too far with this I'd create a single sheet database that contains the following columns

    Code
    Botanical Name ' this could be a Vlookup formula that gets the name form a table of codes
    Grouping ' i.e. your current sheet tab names *
    Area ID ' i.e. values would,be M1, EE 2, TT 2 etc. *
    Category 'values would be LSE 4, HN 1, WE 3 etc. *
    SQM Area *
    Value

    The * values could be Validation drop down cells from which you could pick values. The way I normally arrange these things is to have a single data entry row above the database in which the new values are entered, then a button which runs a macro that adds the new record to the database.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-09-2015
    Location
    Christchurch, New Zealand
    MS-Off Ver
    2010
    Posts
    2

    Re: copying column headers from multiple sheets into a "summary" sheet, based on criteria

    Hi Richard,

    Thank you for your reply, I think I half understand where you're coming from but your response may be hindered by something which I'd originally left out of my original post as I didn't think it would affect what I was trying to do. The values in the columns are calculated using an index/match formula.

    Each botanical name may be associated with more than one category and a percentage of that category is made up by that particular plant type. see below (Code "max"- Row 62, falls under both HN1 and HN2 with 15% allocated to each)

    screengrab 2.jpg

    The formulae which calculates those numbers, once it has identified the Category is - Column H * Column M(result of index/match formula when entering the searchable item in cell AV3 as an example)* SQM area.

    So as per your original post, I wouldn't be able to enter any data into the "values" column that you've suggested I create.

    To provide a bit more background, there are 4 plans that have been divided up into different areas. Each of these areas needs a unique ID associated with it (Area ID) and the SQM area needs to be worked out from the plan and then entered into the spreadsheet.

    The knowns in the spreadsheet are:
    the number/m2 for each plant,
    the botanical name,
    the Category (which are in actual fact sub-categories of each of the tabs i.e. LSE1 is a subcategory of Low Shrub Edge see spreadsheet).

    The purpose of the original sheet was to be able to show the area IDs which all have the same category associated with it, and to then calculate the total number of each plant type and subsequently total number of plants for each Area ID.

    What I want to do now is to take all of that data that has already been calculated and present it by those Area IDs mthat all fall within the same plan (identified by having a 1, 2 ,3 or 4 in the Area ID).

    Hope this helps and further explains what I'm trying to get at?

    And thanks again Richard for your swift reply, I really appreciate it.

    Cheers,

    Dan

+ 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] Macro to Combine data from different Sheets and Sheet names to a "Summary Worksheet"
    By Jemz0410 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2015, 06:18 AM
  2. Export the sheets to PDF Format which has the word "Summary" in Sheet Names
    By Kandavalli.Kiran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2015, 09:14 AM
  3. Replies: 1
    Last Post: 09-04-2014, 12:59 AM
  4. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  5. Replies: 3
    Last Post: 05-31-2013, 05:16 AM
  6. [SOLVED] Need Macro to compile data from "Weekly" sheets and sum up into "Monthly" summary sheet
    By mo4391 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2013, 07:25 PM
  7. Replies: 0
    Last Post: 03-27-2012, 04:54 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