+ Reply to Thread
Results 1 to 7 of 7

Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

    I am new to this forum and I am looking for some assistance with an excel file I am using. I have an excel file that has 6 sheets in which each represents a different building. Within each sheet I have a series of columuns, at the top of every column there is a workcenter location. Underneath each workcenter location there are all the part numbers related to that workcenter location. My question is, how can I set up this file so that I can search for the part number of interest, and have the file return the column header (workcenter location) and the sheet name (building number) for the part number used?

    Any assistance would be greatly appreciated!


    Thanks,

    Justin

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,298

    Re: Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

    Do you have to have it set up in this way? That is, with separate sheets for buildings and separate columns for workstations? It might be a lot easier to manage if you had, say two sheets. The first would be the details of each unique part ... part number, description, cost, whatever. And the other would have building, workstation, part number. You could also have a third sheet with details of the workstation; maybe building code, floor, reference, user(s), whatever. And even a sheet for the buildings.

    I know that means that you'd have up to four sheets but this structure would enable you to filter and analyse the data much more easily.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-08-2012
    Location
    OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

    I'm open for suggestions on how to better set this file up to work more efficiently. There are only 3 variables present in this spreadsheet: the part number, the building number the part number is associated with, and the workstation within that building that the part number is tied to. The only reason I set it up this was is because some of the workstation's can have up to about 1,600 different part numbers tied to it. Let me know what your thoughts are, thanks for the input!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,298

    Re: Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

    Well, if it were me, I would have one sheet. Column A would have the building code/name, Column B would have the workstation ID and column C would have the Part Number. You could use Data Validation for consistent input of the building code, and possibly the workstation ID, and even the part number but that would require a list of unique part numbers. You could then use Autofilter to filter on the building and/or workstation and/or part number. You could use a Pivot Table to analyse the list, again, filtering on building and/or workstation. If you did go for a list of unique part numbers, you could use COUNTIFS or SUMPRODUCT to work out how many parts are where.

    Although you would need to repeat the building and workstation ID code, you could be clever with Conditional Formatting to "hide" the repetition so you could, if required, print a full list without seeing all the repeats. You want to see where a part is, you filter on the part number ... simple. You only want to look at one building ... you filter on the building code. And if you want to see the 1600 parts for that workstation, you just filter on the workstation ... easy.

    I'm assuming that if you have part numbers, they are either self descriptive or there is a parts list somewhere that can be used as reference data.

    Just my thoughts. You have all the data already so it would be fairly straightforward to consolidate it with copy and paste and Autofill to copy down the codes. Maybe an hour to do and a lifetime of pain saved (IMO).


    Regards, TMS
    Last edited by TMS; 10-08-2012 at 11:08 AM.

  5. #5
    Registered User
    Join Date
    10-08-2012
    Location
    OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

    That sounds like a great idea, I think I'll go with that approach. Thank you very much!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,298

    Re: Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

    You're welcome. Thanks for the rep. Good luck with the consolidation ... tedious but worthwhile!

  7. #7
    Registered User
    Join Date
    08-14-2012
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Performing a Seacrch on Multiple Sheets and Returning the Column Header and Sheet Name

    Good luck for you !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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