+ Reply to Thread
Results 1 to 5 of 5

Macro to show ONLY Duplicates on multiple sheets, and then calculate a field based on.....

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Exclamation Macro to show ONLY Duplicates on multiple sheets, and then calculate a field based on.....

    STATUS_REPORT_2_AND_4_9_17.xlsx

    Hello All!

    I have attached a sheet with example data in some of the formats I might get it in. For this macro, I don't want the headings to have to match (or even the column data) necessarily. The point is to automate what I need to do.

    Let me preface by saying that I am aware you can locate duplicates in excel many of ways, by using Conditional Formatting or any number of IF Statements but what I need to do does not seem to have an easy solution.

    In both sheets of the attached workbook you will notice that they all contain a column with a Loan #, a Task #, and a Distribution Date (Dist Date). These are THE ONLY THREE columns I am looking at when I need to analyze the duplicates only and then use the DISTR_DATE to determine the days difference.

    A couple things to note before looking at how to approach this--
    1) I ONLY want to display the loan number (rows and all) that contain duplicates (have 2 or more of the same exact number)
    --> The other data is now irrelevant to what I am trying to report for, it can be deleted if it would make things easier.
    2) I want it sorted by Loan Number (Smallest to Largest) and Task number (Smallest to Largest) to ensure that their are no duplicates amongst duplicates (same loan number and same task number in two separate rows would indicate this. There SHOULD never be two of the same task number's for one individual loan.
    3) For only those loans that are duplicates (Have 2 or more**important, sometimes there are 7-8** in the sample data) I want to start with the lowest task number and look at the number of days difference between the DISTRIBUTION DATES.

    So if Loan 1234 Task 1 Has a Distribution Date of 8/17/2012
    and Loan 1234 Task 2 Has a Distribution Date of 9/02/2012 , I want to show (in a new column) the number of days difference between the two tasks/dates (for X while x is the number of loans that have the same number)

    The only date column I am concerned with (AT THE MOMENT THAT IS/VARIABLE TO CHANGE) is the distribution date.

    If you have any questions please feel free to ask. I am sick of having to run this through access and run SQL then bring it back into excel, do CF'ing and then copy and paste a different formula for each loan number (because it does vary based on the # of duplicates).

    You guys CONTINUE to be the most resourceful forum on the net, and I applaud that.

    I'm stuck here

    Dan

  2. #2
    Registered User
    Join Date
    08-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Macro to show ONLY Duplicates on multiple sheets, and then calculate a field based on.

    No takers yet? Surprising for this forum! I'm sure I will not be left high and dry!

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Macro to show ONLY Duplicates on multiple sheets, and then calculate a field based on.

    Can someone please give this a shot... There are so many experienced people on this forum and NO ONE can take a stab at it for me?


  4. #4
    Registered User
    Join Date
    08-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Macro to show ONLY Duplicates on multiple sheets, and then calculate a field based on.

    Please, I'm asking you guys on a personal level, my job DEPENDS on being able to automate this. The way I do it now is not sufficient, and I will not keep my job unless I can come up with a solution.
    Last edited by Cutter; 09-18-2012 at 07:22 PM. Reason: Removed whole post quote of post #1

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Macro to show ONLY Duplicates on multiple sheets, and then calculate a field based on.

    sadasdasdsadasdas
    Karma - you help me I help you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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