+ Reply to Thread
Results 1 to 17 of 17

Comparing Multiple Sheets to Get a Result Page

  1. #1
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Comparing Multiple Sheets to Get a Result Page

    Hello. I have two pricelist I receive from my wholesale companies/distributors. In the sample, I would like to know if there is a way I can compare the pricing to the matching UPC from Wholesale 1 and Wholesale 2. On the "Results" sheet put the Cost different in $ and by the % also the company (Wholesale 1 or Wholesale 2) of who is cheaper. Now not all the UPC will match so if it can just only compare the same UPC that the wholesalers both have. This would help me so much! If it is possible.

    ***Also on the wholesale sheets I will have the manufacture name listed for each product in a separate column. If it is Wholesaler 1 that is cheaper highlight yellow that row on the results? If that can carry over to the result page!
    Attached Files Attached Files
    Last edited by ryanb4614; 02-23-2015 at 11:33 AM.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Comparing Multiple Sheets to Get a Result Page

    I put the found UPC numbers in column D of your results sheet. This was not something indicated on your sample, but I would think it is information you would want.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Comparing Multiple Sheets to Get a Result Page

    FWIW:

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 02-23-2015 at 12:16 PM.

  4. #4
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Comparing Multiple Sheets to Get a Result Page

    Worked great on test worksheet but when I put in all the products in 8,000-9,000 it freezes up. I let it run for an hour. Anything else I can do? VLOOKUP?

  5. #5
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Comparing Multiple Sheets to Get a Result Page

    Who's code are you referring to?

    Absolutely no disrespect to JOHN H. DAVIS, but if you had 8-9,000 UPCs on each sheet, the code he provided would, i believe, be looping through 64 million + values.

    Does the code I provided also freeze up for you?

  6. #6
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Comparing Multiple Sheets to Get a Result Page

    I tried both codes. I could't get your code to work properly. Nothing would show when all the products were listed. It would run but no results.

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Comparing Multiple Sheets to Get a Result Page

    Another option:
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Comparing Multiple Sheets to Get a Result Page

    Quote Originally Posted by AB33 View Post
    Another option:
    I am getting a scripting error: Set Dic = CreateObject("scripting.dictionary")

  9. #9
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Comparing Multiple Sheets to Get a Result Page

    Actual file can be found HERE
    Last edited by ryanb4614; 02-23-2015 at 02:25 PM.

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Comparing Multiple Sheets to Get a Result Page

    Ryan:

    My code will freeze up with that amount of data. Sorry, I didn't consider files size when I proposed it.

    @walrsueggman: Good catch.

  11. #11
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Comparing Multiple Sheets to Get a Result Page

    No problem I appreciate the effort. Its just so hard going through this a few times a year. It would be great if I can run some code or formula, there are a lot of products !

  12. #12
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Comparing Multiple Sheets to Get a Result Page

    Try this. Took about 1 minute to run, and I got about 3800 matches in you Actual File.

    If you run this on other files, make sure your worksheet names in the code (lines 2 - 4) match your workbook's worksheet names.

    Please Login or Register  to view this content.

  13. #13
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Comparing Multiple Sheets to Get a Result Page

    Quote Originally Posted by ryanb4614 View Post
    I am getting a scripting error: Set Dic = CreateObject("scripting.dictionary")
    Do you have a Mac? The code will not work on a Mac.

  14. #14
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Comparing Multiple Sheets to Get a Result Page

    Worked great thank you so much!!!

  15. #15
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Comparing Multiple Sheets to Get a Result Page

    Great! Please mark this thread as SOLVED, and any reputation points (the * in the lower left of the posts), is appreciated.

  16. #16
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Comparing Multiple Sheets to Get a Result Page

    Quote Originally Posted by walruseggman View Post
    Try this. Took about 1 minute to run, and I got about 3800 matches in you Actual File.

    If you run this on other files, make sure your worksheet names in the code (lines 2 - 4) match your workbook's worksheet names.

    Please Login or Register  to view this content.
    Is there a way I can get the UPC to show up next to the name on the results page?

  17. #17
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Comparing Multiple Sheets to Get a Result Page

    Add this after the "cost2 =" line

    Please Login or Register  to view this content.

+ 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. [SOLVED] Comparing Multiple Sheets
    By lstevenson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2014, 03:27 AM
  2. [SOLVED] Search for multiple rows from multiple sheets by criteria & show result in userform
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2014, 11:29 AM
  3. comparing multiple sheets in the same workbook
    By philipkurian in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2013, 04:47 AM
  4. Comparing Two Sheets with Multiple Fields
    By tim08 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2012, 05:03 PM
  5. Comparing Multiple sheets
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 03-16-2012, 07:57 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