+ Reply to Thread
Results 1 to 4 of 4

Open Office: Rotate name in column list to bottom when used in another column

  1. #1
    Registered User
    Join Date
    07-23-2022
    Location
    USA
    MS-Off Ver
    Open office
    Posts
    3

    Open Office: Rotate name in column list to bottom when used in another column

    Hello all,

    I've been progressively increasing my excel skills and looking for some help with utilizing excel to manage a rotating overtime list of our staff.
    First off I have Office 2019 (at least on my company laptop, not sure what is on my office computer or home laptop).

    In the attached sheet, if I enter an employee name into column C I'd like their name in column F or G to move to the bottom of the list in that column. For example, I enter "employee 7" on the first open shift of 1-Jan. Their name in column F would go to cell F23 and employee 8 through employee 21 would all shift up.
    Same for the PRN column.

    I am about as basic/novice as they come and do not understand VBA's, X lookups, and struggle with applying functions to areas. As basic an explanation as can be offered would be appreciated.
    Attached Files Attached Files
    Last edited by greg9719; 10-11-2023 at 07:31 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Open Office: Rotate name in column list to bottom when used in another column

    I just noticed that you have open office instead of "real Excel" so this might not work.

    First of all, I converted the ranges into tables. Tables have too many good things going for them not to use them. One of them is that tables "know" how big they are. Another is that tables copy down formulas, formats and validations. So when you add a date to cell A4, the entire row of the table comes into existence with the formulas and validations already in place.

    The orange tables are used for data validation and for shuffling the contents.

    I have a cell change event on columns 3 and 4 (C & D) which kicks off the calculation if needed.

    The logic is simple. The program finds the highest Count in either the FT Staff Table or PRN table depending on which column is being updated.

    Then it finds the row that has the selected value and assigns one more than the existing maximum to the count column associated with the selected value. Then it sorts the table based on this value.

    The next time the data validation comes up it comes up based on the new order.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    07-23-2022
    Location
    USA
    MS-Off Ver
    Open office
    Posts
    3

    Re: Open Office: Rotate name in column list to bottom when used in another column

    That worked perfectly and as I had hoped. Thank you so much. I will start doing my homework on tables, data validation, and shuffling contents.

  4. #4
    Registered User
    Join Date
    07-23-2022
    Location
    USA
    MS-Off Ver
    Open office
    Posts
    3

    Re: Open Office: Rotate name in column list to bottom when used in another column

    I actually do have another question. It may be the version I am using but if i select an employee in the drop down in the assignment column it rotates appropriately. Yet if I elect to delete that person for instance if I wanted to change the person it leaves them at the bottom of the list. I get a debug error when I delete any of the values within the table consisting of the opening date, base, assinment (Columns A, B, C, D)

+ 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] When column A UNICODE(A2)>=19968,corresponding to column B,continuous from top to bottom
    By metrostar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2023, 11:24 PM
  2. Replies: 5
    Last Post: 11-04-2022, 11:33 AM
  3. [SOLVED] Rotate List of names bottom to top Repeat without condition with option to set a condition
    By spyac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2018, 05:17 PM
  4. [SOLVED] Append new text at bottom of column based on value at top of column
    By ajm036 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2015, 04:59 AM
  5. Moving data from column and pasting to bottom of next column
    By Datagirl8472 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2014, 04:33 PM
  6. Code to copy data from one column and paste in at the bottom of another list
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2011, 10:20 PM
  7. Replies: 1
    Last Post: 04-09-2006, 04:30 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