+ Reply to Thread
Results 1 to 2 of 2

Fill and search an array

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    40

    Fill and search an array

    I have data in an excel worksheet where there are several employee names and each employee has several assignments like A7, A8, A12, etc. More than one employee may have the same assignment and I�d like to create an array which would show the assignment and all the employees that have that assignment, I think that I would need a two-dimensional array to do that where the first dimension would be the assignment and the second dimension would be the employee name(s). Both parts of the array should be 1-based.

    If the name of the array was Assignments then the first dimension should be something like "A7" and Assignments(1,1) should be something like "Frank" and Assignments(1,2) should be something like "Mary" because Frank and Mary are both assigned to A7. Using VBA, how would I do that? Later I would like to be able to find all the names for a given assignment.
    Last edited by MartinLiss; 07-08-2024 at 06:10 PM.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,023

    Re: Fill and search an array

    Hi MartinLiss

    Please see above yellow ribbon instructing how to upload a sample file...Explain with this data what you are wanting to achieve in output...
    Last edited by Sintek; 07-10-2024 at 08:52 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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: 07-22-2021, 12:45 PM
  2. Replies: 3
    Last Post: 10-05-2014, 11:48 AM
  3. Replies: 4
    Last Post: 12-23-2013, 08:43 AM
  4. Replies: 2
    Last Post: 03-02-2013, 04:36 PM
  5. SEARCH function returns array if first argument is array--Huh?
    By 6StringJazzer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2012, 07:23 PM
  6. Replies: 2
    Last Post: 01-30-2012, 12:18 AM
  7. search for a part of string within an array of strings from another array list
    By jdonohue in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2011, 01:32 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