+ Reply to Thread
Results 1 to 8 of 8

Complicated Duplicate Conditional Formatting Formula Problem, Sample Attached.

  1. #1
    Registered User
    Join Date
    06-17-2008
    Posts
    50

    Complicated Duplicate Conditional Formatting Formula Problem, Sample Attached.

    I have a spreadsheet with about 50,000 rows, listing invoices paid for the past year and a half.

    I have attached a sample file, and here is what I am hoping to do

    In Column A, you see a vendor id, and in columns G, I, and J I have the data I need to work with.

    In the end, I need the spreadsheet to highlight any cells that are duplicate values for each vendor.

    So, if Vendor A has 2 invoices paid on the same day (column G), the cell would highlight. Likewise if Vendor A has 2 invoices with the same invoice number (column I), or 2 invoices with the same dollar amount (column J). So there are three potential areas where a duplicate value may occur, and I need to catch any of those 3.

    In other words, if there is an invoice date that appears twice with the same vendor, highlight. If there is an invoice number that appears twice with the same vendor, highlight. And if there is an invoice amount that appears twice with the same vendor, highlight.

    I know I can set this up for one vendor using conditional formatting, and then use the format painter all the way down, but we are talking about 50,000 cells and hundreds of vendors.

    Is there any way I can conditional format the entire worksheet to do this?


    What I am trying to do is similar to this post, but I can't get this answer to work for me.
    http://www.excelforum.com/showthread...ight=duplicate

    I hope I made my question clear. Thank you very much for your help.
    Attached Files Attached Files
    Last edited by Tnesper; 07-29-2008 at 06:59 PM.

  2. #2
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    Sorry about the non descriptive title, but I can't edit anymore because I kept clarifying the content of the post. Still looking for help

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Here's a way -- it will still be very slow with 50,000 rows. I would not use conditional formatting.

    Speaking of thread titles, "Complicated" and "Sample Attached" wouldn't be much help in a Google search, huh? "Detect duplicates above" on the other hand ...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    That works almost perfectly, but I notice when putting it into my sheet that, say I have 3 dates that are the same, it only displays on check on 2 of them. It looks like it does that for all of them. It only says check on however many times the value appears - 1. I think I understand why you did it that way, this way the duplicate value is the one that pops, but with the way this data is gathered, the second one appearing down the rows might not be the duplicate, it could be the first.

    Other than that, it is working perfectly!
    Last edited by Tnesper; 07-30-2008 at 10:38 AM.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I think you should check it on 50,0000 rows of data and see how it performs. Changing it as you suggest would impose twice the load.

  6. #6
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    Well, what I'm going to do is have it run all the calculations once, and then recopy the rows as values only. That way it wont have to do the calculations everytime. I have checked it out with all the rows, and it doesn't take too long to calculate. I am used to working with large amounts of data and having files run a lot of calculations (some of my files go well over 20 mb, and only have 1 sheet).

    I have checked it out on the 50,000 rows of data, and it works perfectly except for that one problem.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Try changing the formulas yourself so that the middle argument of the MATCH function encompasses the entire range.

  8. #8
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    That didn't get it either,

    my end goal with this is to get that set up, the use conditional formatting and have it highlight the original cell (i.e. the invoice date) if the cell displays "check"

    So I can just tell conditional formatting to highlight if the corresponding cell says check, or the cell below it says check.
    Last edited by Tnesper; 07-30-2008 at 12:52 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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