+ Reply to Thread
Results 1 to 3 of 3

assigning 20 vans to 50 employees based on preference

  1. #1
    Registered User
    Join Date
    07-24-2020
    Location
    hartford, ct
    MS-Off Ver
    2019, 365
    Posts
    1

    assigning 20 vans to 50 employees based on preference

    Hi,

    I have to assign vans to my employees every morning. Each employee has a preference of which Van they want to use. Currently I am doing this by hand and comparing a sheet with employees and preferred van and trying to assign them to their van. I have 50 employees but 20 vans, so all 50 employees have a van preference from 1 to 20, repeated as needed. If it was 20 vans and 20 employees I would just use Vlookup to assign the vans. With 50 employees and 2 employees with same preference working the same day I am not sure how I can accomplish this.

    I have a 3 sheets, one sheet (Vans) has van numbers 1 to 20. Second sheet has (Employees 50-75 with a preferred van number). I want to know if there is a way I can make it so that if an employee name is added to a (Blank) third sheet it would do a Vlookup to see which van the employee prefers, but if the Van is already assigned to another employee, it would pick another unassigned van for the employee.

    I can get van preferences from employees where they pick 1st 2nd 3rd 4th 5th preferred van if needed.

    Is there a way to do this in Excel?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: assigning 20 vans to 50 employees based on preference

    My first question is what happens to 30 people without vans? Do they go home? Or do you only have a maximum of 20 employees working on a given day?

    It sounds like you'll probably need VBA to create a list of who had the van last so they go to the bottom of the list.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,877

    Re: assigning 20 vans to 50 employees based on preference

    crosspost: https://www.mrexcel.com/board/thread...ookup.1141046/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Randomly assigning employees to different groups
    By Tyemco in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2019, 08:20 PM
  2. Assigning tasks to employees and moving between employees
    By sbo123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-20-2014, 10:37 AM
  3. Forecast How Many Employees To Hire Based on Active and Termed Employees
    By Kanook22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2014, 01:19 PM
  4. Assigning jobs at a certain time based off of employees end time
    By cordey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-29-2014, 05:41 PM
  5. Replies: 0
    Last Post: 10-03-2012, 11:17 AM
  6. Creating groups based on stated preference?
    By Nosnibor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2010, 08:10 AM
  7. Assigning multiple category numbers to employees
    By aaron34714 in forum Excel General
    Replies: 1
    Last Post: 05-15-2008, 10:09 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