+ Reply to Thread
Results 1 to 1 of 1

Macro to add row if duplicate occur in a data table

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    52

    Macro to add row if duplicate occur in a data table

    Hi,

    I hope someone can help I've been working on a attendance spread sheet. The purpose of the sheet is when I export the .csv time clock data I can paste it into the import tab, and from there it automatically sorts the employees into their respective team tab. The workbook has 10 tabs 1 summary tab, 6 team tabs, 1 employee tab, 1 supervisor, and 1 import tab.

    The employee tab has the complete employee list with supervisor, and team.

    The supervisor tab just has the list of supervisors for my data validation.

    The import tab is where I copy the export from our time clock, I have a iferror statement with a nested vlookup to indicated if there's a new name on the export that's not recorded on the employee tab. And I have a macro to clear the export data.

    The summary tab just has some pie charts reporting out on absents.

    The team tabs do the heavy lifting in this workbook. I'm using a index/match formula to pull the members of each team followed up with a if statement with a nested vlookup to determine if a certain team member is present.

    Here's the issue it's quite common for someone to have multiple punch in's and punch out's during the coarse of a day. for example if someone punches out for lunch it will create two punch ranges in the export 8:00 - 12:00 and 12:30 - 4:00. Some people of more punch ranges.

    What I need is a macro that if a double plus punch in a range occurs it adds a row to the team tab copies the data over for the row and copies the team entry for the row as well.

    Can anyone please help me with this
    Attached Files Attached Files
    Last edited by JonesyCC; 02-09-2017 at 12:35 PM.

+ 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] Duplicate a column of data from a table into new, sorted table
    By JimDandy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2015, 12:53 PM
  2. [SOLVED] Need VBA solution that searches a table for dates that occur this week
    By seannormand in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2014, 08:24 PM
  3. [SOLVED] How can we step-wise duplicate a Table with a macro, row by row ......one by one .....
    By omega0010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2014, 02:03 PM
  4. Replies: 0
    Last Post: 08-17-2014, 10:00 AM
  5. [SOLVED] Mark duplicate referrals which occur with 30/60/90 days for same medical condition
    By jason_guest in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-12-2014, 06:59 AM
  6. Temperamental Macro's: Errors occur if any changes are made
    By henryBukowski in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2013, 11:23 AM
  7. Restrict Workbook_SheetSelectionChange to only occur after another macro has finished
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2012, 08:23 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