+ Reply to Thread
Results 1 to 6 of 6

Get unique computer names across several sheets/columns

  1. #1
    Registered User
    Join Date
    01-11-2023
    Location
    Virginia US
    MS-Off Ver
    2019
    Posts
    3

    Post Get unique computer names across several sheets/columns

    Hello all,

    thanks in advance for any and all help.

    I work in the IT field and have spreadsheets that have thousands of computer names in different columns and need to sort out the Unique names between them. how can i do this efficiently? i have already tried if statements, filter statements, count statements all with no luck for what i need.

    basically i am looking to learn how to write a formula and/or macro that will allow me to compare names in sheet 1 column A, to sheet 2 Column A, and so on. what is the most efficient way to do this?

    again thanks for the help.
    Last edited by 6StringJazzer; 01-11-2023 at 01:25 PM. Reason: better titles please

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Get unique computer names across several sheets/columns

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #1 requires good titles. "formula help" does not describe your problem. I have updated it for you this time because you are a new member. --6StringJazzer

    I suggest you attach a sample file, or give a much more detailed description ("and so on" is not something you can write a formula or code for). Give sheet names and specific columns.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-11-2023
    Location
    Virginia US
    MS-Off Ver
    2019
    Posts
    3

    Re: Get unique computer names across several sheets/columns

    sorry i thought the "and so on" was implied sheet 3 column A and continued with multiple sheets.

    all machine names are in column A but have several thousand names in them. column names are "Machine Names" all the machine names start at cell A3. the sheet names can be "sheet 1", "sheet 2", Sheet 3".

    im not looking for anyone to do the work for me but rather direct me on where to look and what formula to use in this instance.

    i attached a "sample" spreadsheet.

    in the spreadsheet lets assume that the computer names are not as generic as Computer1.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Get unique computer names across several sheets/columns

    sorry i thought the "and so on" was implied sheet 3 column A and continued with multiple sheets.
    Yes, that's what I assumed, but to actually write a formula, you need the sheet names. If the number of sheets is indeterminate then you would almost certainly need VBA. Also the fact that data starts in row 3 is important. So precision in the question helps us give you the best answer.

    In Excel 365 I might try to do this with the VSTACK and UNIQUE functions but they're not available in 2019.

    Since I am comfortable with macros I would probably use a VBA solution for this. This solution will work for any number of sheets with any names, as long as the only thing in the file is sheets with lists of computer names.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-11-2023
    Location
    Virginia US
    MS-Off Ver
    2019
    Posts
    3

    Re: Get unique computer names across several sheets/columns

    thank you. as we do not have O365 we do not have the "unique" function yet (we are still on office 2016 (at home i have 2019).
    Last edited by 6StringJazzer; 01-11-2023 at 06:49 PM. Reason: removed quote of entire post

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Get unique computer names across several sheets/columns

    This VBA solution should work in any version of Excel that supports VBA.

    Also, if responding directly after a post it isn't necessary to hit Reply with Quote to quote the whole post. You can just type a reply. (When a quote is required it is best to just use the relevant portion.)

+ 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: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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