+ Reply to Thread
Results 1 to 7 of 7

Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

    Locate $ difference.xlsxHello & i appreciate your time (in advance),

    I have data from Yesterdays orders on Sheet 1. Data from Todays orders on Sheet 2. On sheet 3 I want Excel to use the concatenated Order # in column D on sheet 2 (Today), look for the exact match in column D on Sheet 1 (Yesterday), and IF a match is found compare the pricing in column BT from both sheets. And continue the same for each Order # on sheet 2.

    After all that, on the results on sheet 3 I want to add conditional formatting to show:
    1) If Today's pricing is more than Yesterday's (aka OVER, fill colour GREEN on the Order #)
    2) If Today's pricing is less that Yesterday's (aka UNDER, fill colour RED on the Order #)
    3) If Today has an order that wasn't on yesterdays list (aka NEW, fill colour YELLOW on the Order #)
    4) If Today's pricing is the same as Yesterday's (no colour needed on the Order #)

    What I need to know from the results is if an order from yesterday is still waiting to be shipped today, if that order's pricing has changed, and what the difference in pricing is.

    I have attached a sample of the very large Data dump. I need the columns to stay the same as this is how the information is transferred from our database. Also just a heads up, a normal day's data will actually be between 400 and 800 rows long, but i shortened the example to just a couple rows.

    Sheet 4 is what I hope the results will look like on sheet 3.

    Please let me know if you need more info.
    Last edited by Roda D; 04-22-2014 at 11:35 AM. Reason: solved issue

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

    Hi

    Review Sheet
    Cell A9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Ctrl+Shift+Enter then copy down

    Cell B9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down

    Cell C9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down

    Cell D9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down

    See the file and see Conditional Formatting

    Regard
    micope21
    Last edited by micope21; 04-22-2014 at 08:17 AM.
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

    I have used your sheet2 to make the calculations. I compared "Today" column D with "Yesterday" column D and if there was a match, carried the match to sheet2 then used that value to determine the $ amounts. Then I applied the Conditional Formatting.

    VLOOKUP can be use instead of the INDEX MATCH formula in column A

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by newdoverman; 04-21-2014 at 09:31 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    04-21-2014
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

    I have tried both of the above solutions posted above and both work to a point. The problem I am having now is when I copy the formulas to the full workbook (650+ rows of orders) the formulas aren't carrying on down the rows. In both attempts the formulas only work on the amount of rows from the example workbook. Am I missing a step?

    I appreciate the assistance, the formulas are WAY beyond my scope of excel knowledge.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

    Ok I expanded the ranges for the formulae to go to row 2000. If you examine the formulae you will see what I did and this is the change that you will need to make to go beyond that limit.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

    Change =INDEX($BT$2:$BT$1000 and do same match to 1000 or more 2000.

    Regard
    micope21

  7. #7
    Registered User
    Join Date
    04-21-2014
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need to compare data on sheet 1 vs sheet 2 and show results on sheet 3

    Thank you so much. This is perfect! I hope you all have a wonderful day!

+ 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. Replies: 3
    Last Post: 12-15-2015, 05:04 PM
  2. Vba code help pulling data from one sheet and generate results to another sheet
    By OATMAS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2013, 11:45 AM
  3. [SOLVED] find code# from sheet 1 on sheet 2, compare value on sheet 1 with value on sheet 2
    By BlakeLee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-27-2013, 01:52 PM
  4. As user fills out data sheet, then fill out a results sheet based on data sheet entry
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2012, 03:57 PM
  5. Replies: 5
    Last Post: 09-24-2009, 03:46 AM

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