+ Reply to Thread
Results 1 to 8 of 8

Please help for Dup Removal and some data processing

  1. #1
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Please help for Dup Removal and some data processing

    Hello Dear Experts,

    Please check the attached file. I have searched a lot of information on web and have really not been able to make a macro that does the following things:

    1> Remove duplicate rows based on column A from "Main" sheet.
    2> Insert data in columns C, D and E of "Main" sheet from other three sheets, based on ID.

    I have used For Loop but it does not work for unknown number of rows.


    Pleease Help

    Thank you all

    Also Posted here:
    http://www.mrexcel.com/forum/excel-q...ml#post3577195
    http://www.vbaexpress.com/forum/show...225#post297225
    http://www.ozgrid.com/forum/showthre...276#post684276
    Last edited by caabdul; 09-17-2013 at 08:12 AM. Reason: CrossPostingLinks

  2. #2
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Please help for Dup Removal and some data processing

    Sorry I missed the file
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Please help for Dup Removal and some data processing

    Hi

    You don't need any VBA to achieve this.
    First Insert Tables on each of your your sheets as I have done.
    Then in cells C2, D2 and E2 of sheet Main insert the following formulae and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will inert the data for you.
    Where the ID does not exist in any of the Tables as a Member_Num you will get a #N/A result
    If you want to avoid this, then wrap each of the formula inside an IFERROR() function

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then to Remove Duplicates, use the inbuilt function in Excel.
    Select the whole of your data on sheet Main >Data tab>Remove Duplicates> Select just ID> click OK

    I have shown a graphic on the attached workbook which shows this.
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  4. #4
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Please help for Dup Removal and some data processing

    Dear Roger

    Thank you very much for the answer. Actually I want to make a macro. Otherwise I have done this before. Thank you
    Last edited by Fotis1991; 09-17-2013 at 07:31 AM. Reason: Don't quote whole posts -- it's just clutter.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Please help for Dup Removal and some data processing

    Hi there.

    Pls


    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Please help for Dup Removal and some data processing


  7. #7
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Please help for Dup Removal and some data processing

    Got it, I shall care in future

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Please help for Dup Removal and some data processing

    Also you must take care for this and don't do it in the future...

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

+ 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. Processing data
    By Wipster in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2010, 08:41 AM
  2. Data processing
    By lostinback in forum Access Tables & Databases
    Replies: 0
    Last Post: 05-26-2009, 07:39 AM
  3. Processing Data
    By kroz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2009, 02:32 AM
  4. [SOLVED] Processing Data
    By Dan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-12-2006, 09:40 PM
  5. [SOLVED] data processing
    By Youyou in forum Excel General
    Replies: 1
    Last Post: 11-19-2005, 06:42 AM

Tags for this Thread

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