+ Reply to Thread
Results 1 to 5 of 5

VBA to transpose a value in a cell that matches a name and date

  1. #1
    Registered User
    Join Date
    06-28-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    3

    VBA to transpose a value in a cell that matches a name and date

    Hi All,

    Not even sure what I'm trying to do is possible but there are smarter people than me out there.

    I have a Master Roster which is populated for the year with staff and all the know tasks they are doing for the year (as well as leave etc.).

    On a work allocation sheet, I am looking up all the names that have no work allocated to them on particular dates. I was hoping I would be able to enter values here against these names (work) and have this then transposed in the corresponding cell in the master schedule. Is this possible?

    Have tried lookup formulas and scoured the net for potential code. No luck so far. Any help appreciated.

    Cheers, Sandman
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: VBA to transpose a value in a cell that matches a name and date

    It's totally possible - post the workbook (by following the instructions in the yellow banner) and I'll write you a code.

  3. #3
    Registered User
    Join Date
    06-28-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    3

    Re: VBA to transpose a value in a cell that matches a name and date

    Hi carlmon, thanks for your reply.

    I have attached a spreadsheet which is essentially what I will be using.
    Thanks for your help with this.

    Regards,

    Sandman
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: VBA to transpose a value in a cell that matches a name and date

    What do the initials stand for? e.g. SC, FR, M&S, and RDO


    Edit: do you want the initials to populate next to their name in "Work Allocation"
    Double edit" Tracy is missing from the work allocation but has tasks on worker allocation
    Last edited by carlmon; 06-29-2022 at 07:11 AM.

  5. #5
    Registered User
    Join Date
    06-28-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    3

    Re: VBA to transpose a value in a cell that matches a name and date

    Hi carlmon,

    The initial are the pre-assigned task. SC = Shift Crew, M&S = Maintenance and Services, RDO = Rostered Day Off.
    So the names on the the Work Allocation tab are the staff with no pre-assigned tasks on the Master Roster. If they have been assigned something in the Master Roster, they are not longer available.
    So the remaining free resources show up on the Work Allocation and I need to allocate those girls different initials which then find the corresponding staff member and date in the Master Roster and update with what is entered in the Work Allocation.

    Sorry, I've explained this poorly and I'm not sure that attempt was any better.

    Let me know if I'm still talking jiberish and I'll have another go, or perhaps draw what I'm trying to do.

    Thanks for your help.

+ 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] paste transpose football matches into rows
    By aaaaa34 in forum Excel General
    Replies: 9
    Last Post: 06-17-2022, 08:40 AM
  2. COUNTIF Department Matches and Date Range-30 matches?
    By Steven8294 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2022, 06:53 PM
  3. [SOLVED] If date matches and room matches, return room info in to cell
    By HonorBray in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2018, 12:09 PM
  4. adding sum when cell matches date
    By dougers1 in forum Excel General
    Replies: 16
    Last Post: 10-28-2014, 03:02 PM
  5. How to divide a cell value by the sum of another column IF date matches
    By VBAhelp3456 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-26-2014, 04:54 AM
  6. [SOLVED] A cell of Date matches with a range of DATES
    By soundworks999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2013, 09:57 PM
  7. Mark cell if location matches and date falls between date range
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2012, 07:54 PM

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