+ Reply to Thread
Results 1 to 18 of 18

Duplicate Problem

  1. #1
    Registered User
    Join Date
    05-29-2007
    Posts
    11

    Duplicate Problem

    I don't know how to explain this very well so I'll try to be as detailed as I possibly can.

    Every 2-4 days I receive a new spreadsheet with items and prices. What I need to be able to do is take a look at the new spreadsheet and compare the records from the older spreadsheet to find out which items have a new price to them. The item names have 3 specific fields associated with them to determine their uniqueness.

    Name - Set - Rarity - Quantity - Price

    What's the easiest way for me to do this?

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    You can use a VLookup function for this. Create a new file, copy the old data in sheet1, the new data in sheet2. In sheet1 you get the prices of sheet2 with the VLOOKUP function.
    After you checked overwrite the data (not the VLOOKUP !) of sheet1 with the data of sheet2. Next time you only have to overwrite the data in sheet2 with the new data.
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    OK I have a blank spreadsheet. I posted old list in Sheet1. I posted new sheet in Sheet2.

    I read the thing about vlookup! but I'm not sure if that's what I'm needing.

    What I need to have happen is on Sheet3 there be a list of items that matched the three validating (Name - Set - Rarity) fields to verify that it's the same product and tell me, again on sheet three, that a price on Sheet2 is different than it is on Sheet1.

    Here's an example:

    Sheet1
    Apple - Fruit - None - 50 - $2.49
    Tomato - Fruit - None - 24 - $1.39
    Orange - Fruit - Sparse - 8 - $0.48
    Tomato - Vegetable - None - 38 - $1.09
    Celery - Vegetable - Sparse - 5 - $1.89


    Sheet2
    Apple - Fruit - None - 50 - $2.49
    Tomato - Fruit - None - 21 - $1.29
    Orange - Fruit - Sparse - 8 - $0.57
    Tomato - Vegetable - None - 38 - $1.09
    Celery - Vegetable - Sparse - 5 - $1.49


    Sheet3
    Tomato - Fruit - None - 21 - $1.29
    Orange - Fruit - Sparse - 8 - $0.57
    Celery - Vegetable - Sparse - 5 - $1.49


    Note I'm not looking at all 5 products on Sheet3. They're just the items that changed prices. It's Sheet2 that has the most current price.

    Does this make since?

  4. #4
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Please post the file, I'll see if I can make something for it.

  5. #5
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    Here is the XLSX sheet. I left some notes on the last sheet. I hope it makes since. I don't know of any other way to explain it.

    Thank you very much for all of your help!
    Attached Files Attached Files

  6. #6
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Hi tweaker,

    I can't open your file with Excel, the extension is "xlsx" . Even after change the extension it won't open correctly. Please try again.

    Erik

  7. #7
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    Sorry, I'm using Excel 2007. I've saved it using the older version of Excel.
    Attached Files Attached Files

  8. #8
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    tweaker,

    I'm using Excel 2000, still having the same problem. The extension has to be 'xls' instead of 'xlsx'.

  9. #9
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    Try this version.
    Attached Files Attached Files

  10. #10
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Hi tweaker,

    Take a look at it, hope you'll enjoy it !

    Erik
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    It looked like it worked when I put all 7000+ records in it but it only showed up 2 results. I know there are more than that.

    Is it specific to how I sort it? I sort by Set - Rarity - Name. I don't know if that makes a difference or not.

    It's exactly what I'm looking for though! Wow!

  12. #12
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    tweaker,

    I fixed the problem. The macr is running a long time now !

    Erik.

    For tonight : over and out.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    The new sheet works for about 500 records. It starts to work just fine then dies. Thinking it was a compatibility problem with your Excel and my 2007 I installed Excel 2003. Same result. It's pulling the differences nicely as long as I keep it under 500 though. Don't know if that helps out at all.

  14. #14
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    The code is now searching for the last filled cell of column A in the Old price sheet. Change all the code Range("A1:A" & i + 250) into Range("A1:A7250").

  15. #15
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    Do I need to do the same on the New Price List as well?

    Just so you know it ran for about 5 minutes and it died.

    *revised*

  16. #16
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    You have to change it 3 times in the code.

  17. #17
    Registered User
    Join Date
    05-29-2007
    Posts
    11
    I only see Range("A1:A" & i + 250) in here twice. Where's the other reference?

  18. #18
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    You're right, it should be 2 times.

+ 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