copy/paste + relative reference + identify duplicate + allocate if true


New Member
Aug 2, 2011

This is an attempt to make a wok process more efficient.
I have attached a workbook, in which i have left notes, if my description is ambiguous.

I am trying to attach a macro (to an excel button) that will do multiple actions.

Upon clicking said button:
1. copy all new data (below a fixed reference point) on one sheet, into a second sheet below all existing data (from the first black row).
2. identify any order that is a duplicate (by checking each new row against all existing data, including new data)
3. copy all NEW data, after identifying duplicates (possibly a dynamic formula?), into a third sheet. each column needs to be pasted under its corresponding heading (fixed reference point). All duplicates need to be highlighted (entire row if possible), and pasted a second time (On the same sheet) under a second heading (fixed reference point) under their corresponding headings.
4. Based on selection tick-box values (true or false) on the first sheet, allocate EVENLY (under the "agent" heading in the allocation sheet) all new rows between the TURE selections. so if there are 5 true selections and 21 rows of new data, 4 true selections (agents) will get 4 new rows (orders) and the 5th true selection will get 5 new rows.

I have a partial workbook if anyone wants me to email it to them, may clarify what I have said above.

I realize this is a very complex request. It is an attempt to make a process automated to the point when someone with no knowledge can successfully complete the process with as little room for error as possible

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...