+ Reply to Thread
Results 1 to 9 of 9

Duplication problem

  1. #1
    Registered User
    Join Date
    06-14-2019
    Location
    UK,
    MS-Off Ver
    2007
    Posts
    4

    Duplication problem

    Good Morning

    I am going to try and explain this as best i can.

    In column A i have a heading of a city E.G london. under this i have a list of people who are working there, under that i have another heading with another city E.G Paris with more people under it. In total i have about 7 cities. Then running through column B,C and D are job roll information and then E1,E2 onward's are marked with day and date of the month with then creates a grid for me to populate with peoples moments on certain days.

    I then mark each day a person in that city with a D .

    My problem is people on this list will work in different cities though out the month. I am looking for a way to be able to duplicate names in column A but then if i place the same person on shift on the same day in 2 different cities it would give me a warning or highlight the column red.

    I should point out that i use 1 workbook per month.

    is this possible on excel? sorry if this is in the wrong sub forum

    You can see in the upload that some people are working on the same day in different cities.

    If anyone can help it would be greatly appreciated.
    Attached Files Attached Files
    Last edited by cloughy; 06-14-2019 at 04:42 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Duplication problem

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Duplication problem

    Try this "Change_Event" code:-
    Place in worksheet Module (Alt + F11) Then paste in Code window.
    This code will delete entered value , where there is another duplicate in another city for the same person, in the same column.
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Registered User
    Join Date
    06-14-2019
    Location
    UK,
    MS-Off Ver
    2007
    Posts
    4

    Re: Duplication problem

    Mick that is great thanks i am copying it in as per picture am i missing something because it is still not working.
    Attached Images Attached Images

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Duplication problem

    Try your returned file:-
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-14-2019
    Location
    UK,
    MS-Off Ver
    2007
    Posts
    4

    Re: Duplication problem

    That works great thanks i would also like to know how to get the day they are down to be in anyone city to show up in the overview section against there name and the correct date

    for example

    Person A MAD NOT PAR if they had been in those cities on those dates

    if you can point to somewhere i learn how to do this as well that would be much appreciated

    Thanks very much.
    Attached Files Attached Files

  7. #7
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Duplication problem

    Try this:-
    If the result is not as required , please show example file.
    NB:- Not quite sure what this means :-
    Person A MAD NOT PAR if they had been in those cities on those dates
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-14-2019
    Location
    UK,
    MS-Off Ver
    2007
    Posts
    4

    Re: Duplication problem

    I Didnt explain every well i would like the overview section to populate with the city name on the date they are there it seems to clash with the prior requirement.

  9. #9
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Duplication problem

    Please explain, and show file example of what you are expecting to see. !!!

+ 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. Problem with highlighting date duplication
    By asafebass in forum Excel General
    Replies: 4
    Last Post: 02-03-2016, 01:58 PM
  2. Userform Multipage duplication problem
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2016, 04:56 PM
  3. Duplication Problem
    By pankajinfo in forum Excel General
    Replies: 2
    Last Post: 04-18-2008, 04:20 AM
  4. Duplication
    By Williams in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-19-2006, 09:46 PM
  5. [SOLVED] no duplication please
    By asmenut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2005, 05:05 PM
  6. Duplication
    By Wonderer in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-09-2005, 11:05 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