+ Reply to Thread
Results 1 to 12 of 12

Multi Year Data Comparison

  1. #1
    Registered User
    Join Date
    12-07-2022
    Location
    london
    MS-Off Ver
    office 365
    Posts
    6

    Question Multi Year Data Comparison

    Hi all,

    I am currently comparing data spanning years which i've input into a single sheet and wondered if there is a method of coding to automatically detect changes ? (i.e if one year someone spend 10 on apples and 5 on oranges but the next year spends 3 on apples and 5 on oranges and 3 on bananas is there a way to highlight this? / Show?

    Thanks,

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Multi Year Data Comparison

    It would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific
    cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    12-07-2022
    Location
    london
    MS-Off Ver
    office 365
    Posts
    6

    Arrow Re: Multi Year Data Comparison

    Annoyingly it doesnt want to attach, so see below an extract of the data.

    Produce Oxford London 2021 Oxford London 2022
    Apples £ 3 £2 £5 £ 3 £1 £4
    Bananas £ 4 £7 £11 £7 £0 £7


    There are many more columns of data in the full document but I wanted to know if there is a way that i can see which ones have remained the same (i.e same amount spent in same location) and the ones that have changed.

    Thank you for the help!
    Attached Files Attached Files

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Multi Year Data Comparison

    I'm sorry but that doesn't help. Could you upload a copy of your full document to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).

  5. #5
    Registered User
    Join Date
    12-07-2022
    Location
    london
    MS-Off Ver
    office 365
    Posts
    6

    Arrow Re: Multi Year Data Comparison

    Apologies for the delay and thank you for the help. My account wont let me post a direct link
    so here it is broken up

    https : / / app. box. com / s / t 402l jnidd 6gef h0iezh7 qf3r51m5z3p

    What i would like to do is either have some sort of display that illuminates when there has been movement between years for products and locations.

    For example:

    Product 599 (in row B8) has values for D8; E8; G8 (i.e values for 2021) but for 2022 it has values for I8; J8; K8: M8.

    Is there a way that i can input the name (anything from column B) and it will tell me if there has been any increase / decrease in total value?
    In addition to if this is possible, is there a way to see where the movement has occurred (using example above there is a value in I8 but not C8)

    Would really appreciate the help and thank you very much for what you have done so far!

    Many Thanks

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Multi Year Data Comparison

    In the data you posted, you have 5 cities. I assume that the number of cities can vary. Is this correct? When you say
    there is a value in I8 but not C8
    do you simply want to check if a particular city has a value in one year but not in the other year? Please clarify in detail.

  7. #7
    Registered User
    Join Date
    12-07-2022
    Location
    london
    MS-Off Ver
    office 365
    Posts
    6

    Re: Multi Year Data Comparison

    Thank you for the quick reply.

    So the cities and products will be consistent year to year.

    What I would like to be able to check is whether there has been differences in values for certain products across all the cities.

    I.E for b4 there has been changes between both years for Oxford Bath & Bristol but not London and Cambridge. If there was a way of highlighting this (either colour change when value is not consistent or an additional column that stated there was a change)

    Is this possible ?

    Thank you again for the assistance.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Multi Year Data Comparison

    I'm not sure if this is what you were looking for but give this macro a try. Make sure the headers are in row 2 starting in column B.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 12-07-2022 at 02:54 PM.

  9. #9
    Registered User
    Join Date
    12-07-2022
    Location
    london
    MS-Off Ver
    office 365
    Posts
    6

    Re: Multi Year Data Comparison

    Hi Again,

    Apologies for the delay, this is perfect thank you so much for the help!

    I guess as another question, is there anyway I can amend this code so that rather than highlighting the revenue it highlights the product code instead?

    Thank you so much for your help this is fantastic.

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Multi Year Data Comparison

    Try:
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    12-07-2022
    Location
    london
    MS-Off Ver
    office 365
    Posts
    6

    Re: Multi Year Data Comparison

    Hi Again,

    Fantastic thank you very much for the help on this. A true excel Wizard!

    Can the macro continually update or does it need to be run every time?

    Thank you again for all your help!

  12. #12
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Multi Year Data Comparison

    You are very welcome.
    Insert this code below the ‘Dim’ line of code;
    Please Login or Register  to view this content.
    The macro has to be run each time you want to update the sheet.

+ 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. Index Match Year data comparison
    By Cathrine Paul in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-29-2021, 09:48 AM
  2. [SOLVED] Extract Multi-line data and date comparison
    By chilli16 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2018, 12:23 PM
  3. [SOLVED] How to chart year-year comparison when data is in different worksheets
    By Bloodrule in forum Excel General
    Replies: 17
    Last Post: 02-15-2018, 02:39 AM
  4. Data Comparison - Multi criteria
    By rickgarcia76 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-08-2015, 05:24 PM
  5. Excel 2007 - Comparison of monthly sales year on year
    By djr1970 in forum Excel General
    Replies: 7
    Last Post: 08-12-2014, 01:56 PM
  6. Creative Ways for a year-to-year comparison???
    By ridonkulous5 in forum Excel General
    Replies: 1
    Last Post: 03-23-2011, 01:27 AM
  7. [SOLVED] Showing data per month & year for comparison
    By gman in forum Excel General
    Replies: 3
    Last Post: 09-06-2005, 09:05 PM

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