+ Reply to Thread
Results 1 to 5 of 5

Comparison of 2 lots of data and display difference with a visual aid

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Comparison of 2 lots of data and display difference with a visual aid

    hello All

    I’d like to compare 2 lots of data (firm tab) and (Customer Demand Tab) and display the difference on a 3rd tab (Increase or decrease)
    The 3rd tab needs to display with some kind of visual indicator to show it’s an increase of decrease or no change.


    I’ve highlighted in red what I’d like it to do, But I have no idea if this is possible or not.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Comparison of 2 lots of data and display difference with a visual aid

    Since you have Excel 2010, I used tables since they know how big they are (formulas always reference exactly the right amount of data), the grow and shrink as you copy / paste data into them, the formulas "copy down automatically" and you can use natural-language like syntax.

    The differences are made by looking up the part number on one table and subtracting them from the lookup on the other table. The ISERROR is there because most of the parts don't match. I added a couple of helper columns to be able to filter on those parts that exist in both tables.

    =IFERROR( VLOOKUP([@Part],Table_Firm,D$1,FALSE)-VLOOKUP([@Part],Table_Demand,D$1,FALSE),"")

    From there it was a bit of conditional formatting.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Comparison of 2 lots of data and display difference with a visual aid

    That’s great, but there is 2 slight issues’,

    Issue 1
    When I paste the relevant data into the respective tabs the date doesn’t change on the increase or Decrease tab,

    Issue 2
    After updating with current data, When I save the
    Document and reopen its seems to be losing data and gives a warning message of some kind

    Paul
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Comparison of 2 lots of data and display difference with a visual aid

    I bet that happened because you completely overwrote the tables when copying them in. We can take a different approach.

    Tell me how this workbook is filled out. Apparently the data on the first two sheets are copied and pasted in daily. Where does the data for the comparison worksheet come from and is it copied and pasted too?

  5. #5
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Comparison of 2 lots of data and display difference with a visual aid

    Hello

    i have pasted the data in its raw format under tabs raw Firm and Raw Demand.

    Tab Increase and decrease is a list of all the part numbers my customer can possibly order, The Firm Demand is what I have frozen on day A, and Customer Demand is the actual demand on Day B

    Both lots of data are pasted into each tab as it’s displayed in its raw format.
    Attached Files Attached Files

+ 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. difference between VBA and Visual Basic
    By saravanan1981 in forum Tips and Tutorials
    Replies: 10
    Last Post: 12-06-2016, 06:15 AM
  2. BIG sheet with lots and lots of data to filter...
    By Amatør in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2016, 08:26 AM
  3. [SOLVED] Difference between VBA & VB (Using Visual Studio)
    By NeedForExcel in forum Excel General
    Replies: 57
    Last Post: 07-28-2015, 07:58 AM
  4. Comparison between 2 columns of data and show the difference
    By craye in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2014, 05:00 AM
  5. [SOLVED] Display 2 or more rows of data for comparison
    By pigpuncher in forum Excel General
    Replies: 5
    Last Post: 12-19-2013, 10:35 AM
  6. Replies: 11
    Last Post: 07-23-2013, 04:07 PM
  7. Lots of graphs, lots of text boxes needed
    By sarasbluegroove in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-28-2011, 09:11 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