+ Reply to Thread
Results 1 to 7 of 7

Macro that can delete rows where duplicates found and replace with average value

  1. #1
    Registered User
    Join Date
    03-16-2018
    Location
    Austin Texas
    MS-Off Ver
    Office 2016
    Posts
    39

    Macro that can delete rows where duplicates found and replace with average value

    jindon,

    I need a Macro that delete rows where duplicates are found in Column H and replace with average value found in Column N.

    Please see the attached Excel File.

    Thanks for any assistance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro that can delete rows where duplicates found and replace with average value

    Duplicate in Col.H? "TOTAL" column?

  3. #3
    Registered User
    Join Date
    03-16-2018
    Location
    Austin Texas
    MS-Off Ver
    Office 2016
    Posts
    39

    Re: Macro that can delete rows where duplicates found and replace with average value

    Duplicates in Col D. "STPNO" field.

    Delete entire row where duplicates found in column D, "STPNO" field and replace multiple values found in column H with average or normalized value found in column N.

    Hope this clearer.

    Thanks for your assistance!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro that can delete rows where duplicates found and replace with average value

    Sheet3

    You have 484 in D17:D20, what exactly do you want to do?
    Last edited by jindon; 09-13-2018 at 12:27 PM.

  5. #5
    Registered User
    Join Date
    03-16-2018
    Location
    Austin Texas
    MS-Off Ver
    Office 2016
    Posts
    39

    Re: Macro that can delete rows where duplicates found and replace with average value

    Place value from cell N20 into cell H20 and delete entire row 17, 18, & 19.

    Values in cell F20 and G20 will no loner make sense now, but that's okay, I will delete columns F and G eventually anyway.

    Attached Excel Spreadsheet shows what the output should look like after macro is run.

    Thanks again.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro that can delete rows where duplicates found and replace with average value

    All in one.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-16-2018
    Location
    Austin Texas
    MS-Off Ver
    Office 2016
    Posts
    39

    Re: Macro that can delete rows where duplicates found and replace with average value

    Perfect! Thanks again jindon!

+ 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. Found?, then delete entire rows. Not found end sub
    By Andrewstupendo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2018, 01:56 PM
  2. Replies: 7
    Last Post: 03-13-2015, 05:34 PM
  3. Replies: 4
    Last Post: 10-12-2014, 08:54 AM
  4. Macro To Find Rows With Duplicates, Compare Cells, And Delete Rows. - Excel
    By Kwame001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2013, 10:41 AM
  5. Macro to delete multiple rows below that that is found
    By andy.k in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2013, 07:45 PM
  6. Macro to delete rows once #N/A is found in a cell
    By sn79 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2013, 05:04 PM
  7. Replies: 13
    Last Post: 08-23-2011, 11:00 AM

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