+ Reply to Thread
Results 1 to 7 of 7

Compare 2 sheets, Highlight 2 new column entries

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Microsoft Office/Excel 2019 for Mac
    Posts
    39

    Compare 2 sheets, Highlight 2 new column entries

    Every week I pull a report showing out of stocks. It shows a unique number for each customer 'Customer' in Column H. It shows a unique number for each product 'ASW#' in Column L. There are many common columns. What I am trying to highlight for myself is when a new customer with a new product shows up on the latest week's report showing me that as of this week that customer did out of stock on the particular product.

    I pull this report weekly but it can only be pulled on the month's numbers, so in this case March 2020. I have been manually comparing. When I get to the end of a month there will be repeats of customers as it will include customers that would have been out of stock the week prior too. I start missing line items.

    I've attached a sample of the Excel spreadsheet. If there is a good formula I can use, great! If I need to create some other reference columns or data just let me know. The real spreadsheet has a tab for each week of the month.

    In other spreadsheets where I compare inventory levels only, I have a 'Latest' Spreadsheet tab, 'Previous' Spreadsheet tab and then the 'Compare' tab and use VLOOKUP, BUT this just compares one thing. What I don't know how to do is identify the customer AND the ASW# as new for the week.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Compare 2 sheets, Highlight 2 new column entries

    Look at the attached and see if it provided what you needed. If so, here are the steps I followed.
    1. Using Power Query (this is an add-in for Excel 2010) as a free download.
    2. Load both tables to PQ
    3. Merge (Join) the two tables with an anti join on the account number and the ASW number showing only the later table rows not having any population in the earlier table. Result is two accounts


    v H I J K L
    1 Customer Customer Name Customer Address Brand ASW#
    2 100230198 KILLER VINO 2301 PORTSMOUTH SUITE 200, , HOUSTON, TX77098 GUSTAVE LORENTZ 65486396
    3 200022001 PO-GO'S 5360 W LOVERS LANE SUITE 200, , DALLAS, TX75209 GUSTAVE LORENTZ 65495405
    Attached Files Attached Files
    Last edited by alansidman; 03-30-2020 at 12:12 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Microsoft Office/Excel 2019 for Mac
    Posts
    39

    Re: Compare 2 sheets, Highlight 2 new column entries

    Thank you for taking the time...

    I spend 90% of my time working on a Mac that has Microsoft Office 2016 on it and Power Query is not available in this version.

    I do have a Windows based laptop that I can open it up on to see how it works. Is Power Query something that would have to be used each time I run this comparison? If so, it won't work for me.
    Last edited by msdclark; 03-30-2020 at 03:14 PM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,420

    Re: Compare 2 sheets, Highlight 2 new column entries

    If you paste the following formula into cell V2 on the 3.30 sheet and double click to copy down it will display 1's for customer/product combinations that appear on the 3.23 sheet and 0's for those that do not.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Microsoft Office/Excel 2019 for Mac
    Posts
    39

    Re: Compare 2 sheets, Highlight 2 new column entries

    This is such a simple formula but works amazingly wonderful! Thank you! I'll have to analyze how it works so I can learn from it, but for now I am going to zoom through the report!

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Compare 2 sheets, Highlight 2 new column entries

    Power query allows you to refresh the data when you add new information to the existing tables. You do not need to rebuild each time. It is similar to adding data for a pivot table. Click on the refresh Icon.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,420

    Re: Compare 2 sheets, Highlight 2 new column entries

    You're Welcome and thank you for the feedback. When you get a chance please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed 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. [SOLVED] Compare Two Sheets and Highlight Differences
    By Blake 7 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-12-2015, 11:44 AM
  2. [SOLVED] Compare two sheets, highlight differences
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-11-2014, 05:12 PM
  3. [SOLVED] Compare name list (First name, last name) on two different sheets and highlight
    By badboynads in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2013, 07:37 AM
  4. [SOLVED] Compare column on separate sheets in workbook and highlight differences
    By specialk610 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2013, 03:57 PM
  5. Compare two data sheets for common entries
    By anikamenon in forum Excel General
    Replies: 3
    Last Post: 11-17-2012, 12:16 PM
  6. [SOLVED] Need to Highlight New Entries Between 2 Sheets in Same Workbook
    By Whit804 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2012, 11:48 AM
  7. Highlight duplicate entries from multiple sheets
    By alinpion in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2011, 06:22 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